Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2016 15:51:56 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Alexander Leidinger <Alexander@leidinger.net>, current@freebsd.org
Subject:   Re: Installworld fails when /usr/bin and /usr/sbin are different FS / how to use symlinks in installworld?
Message-ID:  <e639125b-7fd7-6787-d25d-1ed6c3d9b583@FreeBSD.org>
In-Reply-To: <20160903002535.Horde.n5qG88hbIXXvxY8xCMGjSbZ@webmail.leidinger.net>
References:  <20160903002535.Horde.n5qG88hbIXXvxY8xCMGjSbZ@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--aql9P4Q3jdAGrmQHlwNkML8VvaWsG7Gig
Content-Type: multipart/mixed; boundary="c8kN2XPw76Spt7S7Rkgcg5QRxifEPhUPc";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Alexander Leidinger <Alexander@leidinger.net>, current@freebsd.org
Message-ID: <e639125b-7fd7-6787-d25d-1ed6c3d9b583@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>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e639125b-7fd7-6787-d25d-1ed6c3d9b583>