Subject: install/34163: installboot silently fails for LFS on RAID
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tls@netbsd.org>
List: netbsd-bugs
Date: 08/08/2006 16:55:01
>Number:         34163
>Category:       install
>Synopsis:       installboot uses ffs_findstage2 for all FS types on RAID.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 08 16:55:01 +0000 2006
>Originator:     Thor Lancelot Simon
>Release:        NetBSD-current as of 2006-08-07
>Organization:
	Thor Lancelot Simon
>Environment:
System: NetBSD  3.99.24 NetBSD 3.99.24 (GENERIC.MP) #0: Mon Aug  7 05:38:11 UTC 2006  builds@b1.netbsd.org:/home/builds/ab/HEAD/amd64/200608070000Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC.MP amd64
Architecture: i386
Machine: i386
>Description:
installboot -v /dev/rwd0a /usr/mdec/bootxx_lfsv2 produces a non-booting
system if /dev/rwd0a is in fact a component of an RAIDframe RAID 1 set.

This is because installboot is hard-coded to use ffs_findstage2 for all
partitions of type "RAID", and there is no lfs_findstage2 (how does the
LFS bootblock work at all, even on non-RAID partitions?)

Explicitly using -t raw doesn't seem to work either.  I cannot ascertain
how the stage 2 bootblock is even intended to be found on LFS. :-/
>How-To-Repeat:
See above.
>Fix:
See above.