Subject: misc/5010: sysinst upgrade needs symlinks in / to match /mnt's
To: None <email@example.com>
From: Simon J. Gerraty <firstname.lastname@example.org>
Date: 02/18/1998 01:11:43
>Synopsis: sysinst upgrade needs symlinks in / to match /mnt's
>Responsible: misc-bug-people (Misc Bug People)
>Arrival-Date: Tue Feb 17 15:50:02 1998
>Originator: Simon J. Gerraty
System: NetBSD zen.quick.com.au 1.3 NetBSD 1.3 (ZEN) #1: Sun Feb 15 23:38:24 EST 1998 email@example.com:/u0/usr/src/sys/arch/i386/compile/ZEN i386
sysinst does a good job (better than I expected) of handling the original
fstab when upgrading. Ie. it mounts all the fs's in the original hierarchy
This works fine unless there are symlinks like /usr/local -> /abc/xyz
This is not an easy thing to deal with, but making symlinks in / for
each dir or symlink in /mnt that does not already exist in / would
go a long way to fixing it. Eg. if /mnt/abc existed and /abc -> /mnt/abc
things would just work.
Create /usr/local -> /share/arch/NetBSD/i386
and then try upgrading.
for x in /mnt/*
test -d $x -o -h $x || continue
test -e $b || ln -s $x .