From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 29 13:22:46 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83258106564A for ; Fri, 29 Jul 2011 13:22:46 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm25.bullet.mail.sp2.yahoo.com (nm25.bullet.mail.sp2.yahoo.com [98.139.91.95]) by mx1.freebsd.org (Postfix) with SMTP id 68D888FC0A for ; Fri, 29 Jul 2011 13:22:46 +0000 (UTC) Received: from [98.139.91.68] by nm25.bullet.mail.sp2.yahoo.com with NNFMP; 29 Jul 2011 13:10:29 -0000 Received: from [208.71.42.204] by tm8.bullet.mail.sp2.yahoo.com with NNFMP; 29 Jul 2011 13:10:29 -0000 Received: from [127.0.0.1] by smtp215.mail.gq1.yahoo.com with NNFMP; 29 Jul 2011 13:10:28 -0000 X-Yahoo-Newman-Id: 603486.69553.bm@smtp215.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: nx3UDjQVM1nUxpXtb1JlViSRKEOMi0UqlaweJ0aNxHkelSd SNEFL2N_Qo1vqrTW6MTcb_13IR33mlJ4ULYKdASqXvhZfu_zYbU43v7fAn4y zv_VJXsLYXtz8hivM4LVedzz6I9U2qVX8vdADYcg7Hgg9hYN3J46QjnBOrB2 gxxbHN21C2cXqFpsJCtR90EJLbpK9tpnmnKuFSIBcHVCmbF1Ukmy.dzkXBI7 kYxJh_EFI_HiNkuY09QRJc_j6HDojl7KMzZW_TklDOYdObHRM4ChOGOlnqO6 XpbrVnK0F1FPatRbt7GlSTxcoPJN.a0ar_kbsg3t.pgFTNN7z5PuH1cGy_M. Xqnk2KHqrPGhCR_6FA7LYUeWKEw-- X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.20] (se@81.173.146.76 with plain) by smtp215.mail.gq1.yahoo.com with SMTP; 29 Jul 2011 06:10:24 -0700 PDT Message-ID: <4E32B139.8030807@freebsd.org> Date: Fri, 29 Jul 2011 15:10:17 +0200 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: FreeBSD Hackers Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: installworld fails with /usr/bin and /usr/sbin on separate file systems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2011 13:22:46 -0000 Installworld fails in "usr.sbin/chown" with a cross-device link error, if /usr/bin and /usr/sbin are not on the same partition due to the following line in Makefile: LINKS= ${BINDIR}/chown /usr/bin/chgrp In this case, ${BINDIR} is /usr/sbin and while both are subdirectories of /usr (and thus typically within the /usr file system), there is no reason /usr/bin and /usr/sbin could not be individual and independent file systems. (I ran into this problem when I played with ZFS file system tuning and happened to create separate file systems for the above directories.) I could not find any other place, where a hard link is used for files in different subdirectories (typically ${BINDIR}/x -> ${BINDIR}/y or ${LIBDIR}/x -> ${LIBDIR}/y). Installworld succeeds, if a symlink is used instead: SYMLINKS= ${BINDIR}/chown /usr/bin/chgrp Alternatively, the file could be copied, if the hard link can not be created. I'm not sure, whether this is an actual problem, since it does not appear to have been reported before, but I think that "LINK=..." should generally not be used between different directories. Regards, STefan