NetBSD Problem Report #21724

Received: (qmail 17348 invoked by uid 605); 30 May 2003 22:42:32 -0000
Message-Id: <20030530224230.2862811155@narn.netbsd.org>
Date: Fri, 30 May 2003 22:42:30 +0000 (UTC)
From: sysadmin@terc.edu
Sender: gnats-bugs-owner@netbsd.org
Reply-To: sysadmin@terc.edu
To: gnats-bugs@gnats.netbsd.org
Subject: using newbtconf breaks upgrade
X-Send-Pr-Version: www-1.0

>Number:         21724
>Category:       misc
>Synopsis:       using newbtconf breaks upgrade
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri May 30 22:43:00 +0000 2003
>Closed-Date:    
>Last-Modified:  
>Originator:     Robby Griffin
>Release:        NetBSD/i386 1.6, 1.6.1
>Organization:
TERC
>Environment:
NetBSD gestetner 1.6 NetBSD 1.6 (GENERIC) #0: Sat Nov  9 23:41:11 EST 2002     xela@foiegras:/export/home/xela/usr/src/sys/arch/i386/compile/GENERIC i386

>Description:
Having used /sbin/newbtconf on a NetBSD 1.6 machine to set up multiple boot configurations, we found it awkward to upgrade the machine to NetBSD 1.6.1. While examining the existing install of 1.6, the 1.6.1 installer could not find etc/fstab on the hard drive ("Help!  No /etc/fstab in target disk wd0.  Aborting upgrade."). This is because etc/fstab is a symlink to etc/etc.current/fstab, and etc/etc.current is a symlink to /etc/etc.mymachine (note the leading slash). This means that, having its own root filesystem on a ramdisk, the installer is following symlinks to /etc/etc.mymachine/fstab, where /etc is on the ramdisk, not on the hard drive.

We were able to do the upgrade by manually changing the etc.current symlink from an installer shell, but this seems awkward. The symlink really should have been relative in the first place.
>How-To-Repeat:
See description.
>Fix:
Workaround: when upgrading, manually change etc.current to a relative link.

Fix: have the boot-time selector script create a relative link in the first place:

--- /etc/rc.d/bootconf.sh.orig	Sun Sep  8 15:33:33 2002
+++ /etc/rc.d/bootconf.sh	Fri May 30 18:38:39 2003
@@ -65,7 +65,7 @@
 		;;
 	*)
 		rm -f /etc/etc.current
-		ln -s /etc/etc.$conf /etc/etc.current
+		ln -s etc.$conf /etc/etc.current
 		;;
 	esac


>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.