Subject: Re: install/8090
To: Perry E. Metzger <>
From: David Laight <>
List: netbsd-bugs
Date: 11/12/2004 20:03:52
On Fri, Nov 12, 2004 at 02:25:11PM -0500, Perry E. Metzger wrote:
> I don't think --chroot in any way fixes the problem. Could you explain
> why you think it would? I think this should be reopened.

tar -h ... will follow symbolic links in the existing filesystem, but
requires that the target actually exists.

So if you have /home -> /usr/home then 'tar -h' will require that
/usr/home can be found - otherwise it will recreate /home.

When sysinst runs tar, the sytems root filesystem is mounted on /targetroot,
so /targetroot/home -> /usr/home in the memfs install fs - which won't exist.

With the --chroot (to /targetroot) the symlink in anchored inside the chroot
so tar will find the systems /usr/home and be happy.

I did a test install with one of the directories moved by an absolute
symlink - and sysinst just followed the symlink.

I think we could add /home back into the sets...


David Laight: