From owner-freebsd-current@freebsd.org Fri Sep 2 22:52:02 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 18107BCCF78 for ; Fri, 2 Sep 2016 22:52:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id ED962D47 for ; Fri, 2 Sep 2016 22:52:01 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id ECDE3BCCF77; Fri, 2 Sep 2016 22:52:01 +0000 (UTC) Delivered-To: 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 EC801BCCF75 for ; Fri, 2 Sep 2016 22:52:01 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D38D0D46; Fri, 2 Sep 2016 22:52:01 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id C7E4412E3; Fri, 2 Sep 2016 22:52:01 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 740741AD8C; Fri, 2 Sep 2016 22:52:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 76i6E50I66Ei; Fri, 2 Sep 2016 22:51:57 +0000 (UTC) Subject: Re: Installworld fails when /usr/bin and /usr/sbin are different FS / how to use symlinks in installworld? DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 801191AD87 To: Alexander Leidinger , current@freebsd.org References: <20160903002535.Horde.n5qG88hbIXXvxY8xCMGjSbZ@webmail.leidinger.net> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: Date: Fri, 2 Sep 2016 15:51:56 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160903002535.Horde.n5qG88hbIXXvxY8xCMGjSbZ@webmail.leidinger.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aql9P4Q3jdAGrmQHlwNkML8VvaWsG7Gig" 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: Fri, 02 Sep 2016 22:52:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aql9P4Q3jdAGrmQHlwNkML8VvaWsG7Gig Content-Type: multipart/mixed; boundary="c8kN2XPw76Spt7S7Rkgcg5QRxifEPhUPc"; protected-headers="v1" From: Bryan Drewery To: Alexander Leidinger , current@freebsd.org Message-ID: 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> In-Reply-To: <20160903002535.Horde.n5qG88hbIXXvxY8xCMGjSbZ@webmail.leidinger.net> --c8kN2XPw76Spt7S7Rkgcg5QRxifEPhUPc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 9/2/2016 3:25 PM, Alexander Leidinger wrote: > Hi, >=20 > background info: > - iocage (jail management) uses official release tarballs > - I want to install a jail from a specific src I compiled withour > creating release tarballs (-> faster time to market), so I want to > convince iocage to use what I provide via installworld > - jails of type "basejail" (jails read-only-share the base system) in > iocage are handled via seperate zfs datasets for each directory > - as such /usr/bin and /usr/sbin are different datasets >=20 > I got this error in installworld: > ---snip--- > =3D=3D=3D> usr.sbin/chkgrp (install) > install -s -o root -g wheel -m 555 chkgrp > /iocage/base/12.0-r305149M/root/usr/sbin/chkgrp > install -o root -g wheel -m 444 chkgrp.debug > /iocage/base/12.0-r305149M/root/usr/lib/debug/usr/sbin/chkgrp.debug > install -o root -g wheel -m 444 chkgrp.8.gz=20 > /iocage/base/12.0-r305149M/root/usr/share/man/man8/ > =3D=3D=3D> usr.sbin/chown (install) > install -s -o root -g wheel -m 555 chown > /iocage/base/12.0-r305149M/root/usr/sbin/chown > install -o root -g wheel -m 444 chown.debug > /iocage/base/12.0-r305149M/root/usr/lib/debug/usr/sbin/chown.debug > install -o root -g wheel -m 444 chgrp.1.gz=20 > /iocage/base/12.0-r305149M/root/usr/share/man/man1/ > install -o root -g wheel -m 444 chown.8.gz=20 > /iocage/base/12.0-r305149M/root/usr/share/man/man8/ > =3D=3D=3D> usr.sbin/chown/tests (install) > install -o root -g wheel -m 555 chown-f_test=20 > /iocage/base/12.0-r305149M/root/usr/tests/usr.sbin/chown/chown-f_test > install -o root -g wheel -m 444 Kyuafile=20 > /iocage/base/12.0-r305149M/root/usr/tests/usr.sbin/chown/Kyuafile > /usr/bin/chgrp -> /usr/sbin/chown > install: link /iocage/base/12.0-r305149M/root/usr/sbin/chown -> > /iocage/base/12.0-r305149M/root/usr/bin/chgrp: Cross-device link > *** Error code 71 >=20 > Stop. > make[5]: stopped in /usr/src/usr.sbin/chown > *** Error code 1 >=20 > Stop. > ---snip--- >=20 > 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. >=20 > 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. Couldn't you just make a usr-bin dataset and have usr-bin/bin and usr-bin/sbin and symlink or nullfs-mount them in though? I too go crazy with datasets, but this seems a bit too much. --=20 Regards, Bryan Drewery --c8kN2XPw76Spt7S7Rkgcg5QRxifEPhUPc-- --aql9P4Q3jdAGrmQHlwNkML8VvaWsG7Gig Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXygKNAAoJEDXXcbtuRpfPxLQIANa2rS9vR9/Ig3Zd4xGnFsmC /34RZt+DJjqwxf/1PRb+KOd2O/qfnZwRO25F3uZ7YEGDA4tD+TNRHIgl+xBDO8FX 9zGXkyA56XtKrE6im240TZNZCGFaqX4afLQCNOYerf96bKrp6vVc/daI44zPlO7l knMXEQxoUiTiOsn6vnspPaGauLoKxdu0bcVCadOVqmJKOI92569J+TxnTe0EPl5s o8S1jYqXi4vFbvJf67zFCHCb4QTDmkVRaCuKgNBW/2ZRr+DacRbOJuApiIygxquy R4QS7vvUbppWeZR5GB1raoK5Zqd3ouENhgaJAEq/0KZ9k7dUZPWbxMkYpNlOSW0= =OzvR -----END PGP SIGNATURE----- --aql9P4Q3jdAGrmQHlwNkML8VvaWsG7Gig--