From owner-freebsd-current@freebsd.org Sat Sep 3 14:28:08 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2F23BCD5A7 for ; Sat, 3 Sep 2016 14:28:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8A185E51 for ; Sat, 3 Sep 2016 14:28:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p5B0852F0.dip0.t-ipconnect.de [91.8.82.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 6998983E8CC for ; Sat, 3 Sep 2016 16:27:45 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id CCF7135F8 for ; Sat, 3 Sep 2016 16:27:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1472912862; bh=lCSI/qL7tpzIGmc/1sgiEHlEuxuosvTMtvmAFGaLaTc=; h=Date:From:To:Subject:References:In-Reply-To; b=Z5icMMnRD2gD/gAPDB+esc0R1eO28+VSAYCMtfm48Qu89Yyv/LWHN9x88J8j2zhFW XxK8h8Q6b/ZdUHhrOj5EhZAaAEAzCT3eqw0yTROGZHdBvo0MaClLig1L9TUMkH4qmj toc1ILgXifmOqwwN9iFWX2Qc1EplP2bKzNOBHoru14tvE1Ul7wR1F0mwXv/amgROcV DxOGwWbKP+AMFGL1Xi/LYUOM53lZmZv1HgSZ5xs8NRe400+5xod5MME3DQYCNyvunX hwnTB8s1rVRXreH9+l5TbSx3SU0ND3b8oOTO33zxQ3q1mqcnf5gAararjsV3C77jaY JKTGmjdZd4kAw== Received: (from www@localhost) by webmail.leidinger.net (8.15.2/8.14.4/Submit) id u83ERgAw047370 for freebsd-current@freebsd.org; Sat, 3 Sep 2016 16:27:42 +0200 (CEST) (envelope-from Alexander@leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@leidinger.net using -f Received: from IO.Leidinger.net (IO.Leidinger.net [192.168.1.11]) by webmail.leidinger.net (Horde Framework) with HTTPS; Sat, 03 Sep 2016 16:27:42 +0200 Date: Sat, 03 Sep 2016 16:27:42 +0200 Message-ID: <20160903162742.Horde.VwF6k4PYaYlU4pH3PhEDVcg@webmail.leidinger.net> From: Alexander Leidinger To: freebsd-current@freebsd.org Subject: Re: Installworld fails when /usr/bin and /usr/sbin are different FS / how to use symlinks in installworld? References: <20160903002535.Horde.n5qG88hbIXXvxY8xCMGjSbZ@webmail.leidinger.net> <20160903082449.Horde.pMMQ0U5-fysxWXmmSbXbHZa@webmail.leidinger.net> In-Reply-To: <20160903082449.Horde.pMMQ0U5-fysxWXmmSbXbHZa@webmail.leidinger.net> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_UBtTaPLGtcwwuRIMvQ8kJPY"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 6998983E8CC.A7867 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.1, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1473517671.23398@i75mG2l4xuUN3xjy5QVaTA X-EBL-Spam-Status: No X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2016 14:28:08 -0000 This message is in MIME format and has been PGP signed. --=_UBtTaPLGtcwwuRIMvQ8kJPY Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Alexander Leidinger (from Sat, 03=20=20 Sep=202016 08:24:49 +0200): > Quoting Bryan Drewery (from Fri, 2 Sep 2016=20=20 >=2015:51:56 -0700): > >>> The error message is obvious, it tries to create a hardlink which is of= f >>> course not possible when src and dest of the link are on different FS. >>> >>> My goal of an easy procedure (installworld into target datasets) doesn'= t >>> work like this off course. Do we have an easy way of telling >>> installworld to create symlinks instead of hardlinks, or alternatively = a >>> way to tell to copy instead of doing a hardlink if the install hits the >>> cross-device case? >> >> Maybe falling back to symlink could be done. > > A copy-in-cross-fs-case would be the best solution, this way you=20=20 >=20don't need to care about having the right path (DESTDIR comes into=20= =20 >=20the game here) specified on the comman line. I just checked, this 9.6k file the only case were a hardlink would be=20=20 done=20outside the dataset. Changing LINKS to SYMLINKS for chown would=20= =20 be=20the most easy solution. This would work in the usual use cases (and=20= =20 surely=20in the normal FreeBSD use), but it would fail in the edge case=20= =20 were=20someone is using relative-path based execution of chgrp in a=20=20 shifted-away=20location without using chroot and expecting it will use=20= =20 chown=20from the shifted-away location. Is this an use-case which we care about, or should we just change=20=20 LINKS=20to SYMLINKS? Without the need to support DESTDIR, the install-argument "-l m"=20=20 (hardlink=20if same FS, symlink if cross-FS) would have been a less=20=20 intrusive=20option for this. Unfortunately there is no linkoption "c"=20=20 for=20copy-if-cross-FS (and I rather modify the Makefile locally than to=20= =20 spend=20time to implement such an option for just this one case). Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_UBtTaPLGtcwwuRIMvQ8kJPY Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJXyt3eAAoJEKrxQhqFIICEcFAP/RI3xFth5DdS5Gm7C9rT3kqf 1lbyAqxZRX1ScBUjzKEEZ9OOcCV7gIrEZ4GwthSbMfg8Y6ZFW0kCs/okyJmodBe8 iPCY/r3m0GDICqm+xwYmD6ZfOGkqSsGM5sJB4CEoqXpwTFJFksk4NTp2icll2G7Q dBS7ScwdEbzdp+LRdRSDP1doakIsGbCk83Pz8sxDc6+6uMgQQa0iWwBSXgwW0TSB sycW7dE1QGND9AfNcqR7x4eY2I/k9DbKqtRsJynXxn+qwLhQTO/O5GwMhrKh12Wo t3oe4xs4aDEKr3nb5/A8elLsQOgCRqQHSUTzNj8DSHsFhtagPj5ZIgBqzZ8dMLJm 55dFGPo+r5uc6BKAoKuunKXwLoaX1Pd9IDM/KeRN/USUpEdCu046HSS1WvE92lMv 5rLAmzaJ0P+sEtrvx8CtWXzE30e1tPJY9jPEWYaZXwQuPiS3jh1qzn8W1mc2cvGl n9mU9I5K8Kf//UZyuyDE4N6S+EJRZwbNKI82/AZD07dFUYCrI7hSbX6CtmEwXwv/ iCBDkd4cJIUf1cTgnxfdCmvaoijAaVDWcW+N8jI5JtnfqCNIQQ2Y1wzLxSxbN9B2 8+28HU5bPyVGi19OBxtuPAInIrRtG8CmoIMuBtJf/Ss1mrpBWtRzZ5aBph7xAbXd bC6SNB38vlmIUWdKSzhv =b/Sx -----END PGP SIGNATURE----- --=_UBtTaPLGtcwwuRIMvQ8kJPY--