Subject: install/11705: sysinst fails to deal with 'root_device' mount point
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/12/2000 08:12:12
>Number:         11705
>Category:       install
>Synopsis:       sysinst has trouble with 'root_device' mount point
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 12 08:12:00 PST 2000
>Originator:     Tim Franklin
>Release:        1.5 <NetBSD-current source date>
System: NetBSD 1.5 NetBSD 1.5 (BILL) #0: Fri Dec 8 16:29:45 GMT 2000 sparc

Booting from the 1.5 miniroot on /dev/sd0b on a SparcStation 2, sysinst halts
with an error that it cannot install to sd0 as it cannot check if the root
device is in use.  Shelling out and checking 'mount' shows that 'root_device'
is mounted as '/'.
Boot from miniroot in /dev/sd0b, run sysinst to upgrade installation on sd0.
(sd0 is the only disk in the machine).
Workaround is to shell out and re-mount '/' with the full /dev/sd0b path:

mount -u /dev/sd0b /

sysinst then detects that the root partition for the miniroot is the swap
partition, not the root partition of the system to be upgraded, and the
upgrade continues normally.

Suggestion: get sysinst to look up what 'root_device' actually is when it
encounters it as a mounted device and use that value in its checks?