From 831546110a77c7d191012fd241d7c138f2ecad0b Mon Sep 17 00:00:00 2001 From: hubertf Date: Sun, 23 Apr 2006 23:26:26 +0000 Subject: [PATCH] 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! --- etc/rc.d/bootconf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/bootconf.sh b/etc/rc.d/bootconf.sh index 7c7dd063bf33..99f9d0f9b621 100755 --- a/etc/rc.d/bootconf.sh +++ b/etc/rc.d/bootconf.sh @@ -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