Subject: misc/5010: sysinst upgrade needs symlinks in / to match /mnt's
To: None <>
From: Simon J. Gerraty <>
List: netbsd-bugs
Date: 02/18/1998 01:11:43
>Number:         5010
>Category:       misc
>Synopsis:       sysinst upgrade needs symlinks in / to match /mnt's
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 17 15:50:02 1998
>Originator:     Simon J. Gerraty
Zen Programming...
>Release:        1.3
System: NetBSD 1.3 NetBSD 1.3 (ZEN) #1: Sun Feb 15 23:38:24 EST 1998 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
under /mnt.

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.

cd /
for x in /mnt/*
	test -d $x -o -h $x || continue
	b=`basename $x`
	test -e $b || ln -s $x .