Subject: install/10544: sysinst (really pax) unlinks directories
To: None <firstname.lastname@example.org>
From: John Hawkinson <email@example.com>
Date: 07/08/2000 20:09:13
>Synopsis: sysinst (really pax) unlinks directories
>Arrival-Date: Sat Jul 08 20:10:00 PDT 2000
>Originator: John Hawkinson
>Release: netbsd-1-5 of 20 June 2000
System: NetBSD zorkmid.mit.edu 1.5_ALPHA NetBSD 1.5_ALPHA (ZORKMID-$Revision: 1.15 $) #231: Fri Jul 7 19:41:21 EDT 2000 firstname.lastname@example.org:/usr/local/netbsd-1-5/src/sys/arch/i386/compile/ZORKMID i386
While trying to upgrade my NetBSD 1.2_ALPHA system (ha, ha!),
with a filesystem layout like:
/usr -> u1/usr
/var -> u1/var
sysinst would unlink /usr prior to extraction, thus
trying to write /usr/bin to /, overfilling the partition and
running out of space.
Use pax to extract a directory over a symlink, and watch it
unlink the symlink and create the directory.
Not sure...perhaps pax should have an option to deal with case?
A crude alternative would be to use:
mkdir usr; pax -zr%spe -f %s -s ',^\./usr$'\,,'
i.e. exclude /usr from the set of things extracted.
Of course, it should be more generic. Perhaps extracting the list
of directories and mkdir-ing them and then excluding them from
If people think it's not worth fixing, I'd be curious about that,