When switching the /etc/etc.current symlink, make it relative to /etc,
not absolute. This affects an update with sysinst, which will try to look at /targetroot/etc/fstab, which points to /etc/etc.whatever, which is not there during the upgrade, and results in all (/targetroot)/etc files getting nuked!
This commit is contained in:
parent
6e0ce16052
commit
831546110a
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: bootconf.sh,v 1.8 2004/10/11 15:00:51 christos Exp $
|
||||
# $NetBSD: bootconf.sh,v 1.9 2006/04/23 23:26:26 hubertf Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: bootconf
|
||||
|
@ -65,7 +65,7 @@ bootconf_start()
|
|||
;;
|
||||
*)
|
||||
rm -f /etc/etc.current
|
||||
ln -s /etc/etc.$conf /etc/etc.current
|
||||
ln -s etc.$conf /etc/etc.current
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in New Issue