NetBSD Problem Report #34163

From tls@NetBSD.org  Tue Aug  8 16:51:16 2006
Return-Path: <tls@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id D399763B8C3
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  8 Aug 2006 16:51:16 +0000 (UTC)
Message-Id: <20060808165116.86DA498F29@ADMIN.netbsd.org>
Date: Tue,  8 Aug 2006 16:51:16 +0000 (UTC)
From: tls@netbsd.org
Reply-To: tls@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: installboot silently fails for LFS on RAID
X-Send-Pr-Version: 3.95

>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
>Last-Modified:  Fri Nov 10 07:45: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.

>Audit-Trail:
From: Christoph Badura <bad@bsd.de>
To: gnats-bugs@netbsd.org
Cc: tls@netbsd.org
Subject: Re: install/34163: installboot uses ffs_findstage2 for all FS types on RAID.
Date: Fri, 10 Nov 2006 08:42:31 +0100

 Hi Thor,

 around the end of September I locally pulled up jdc's changes from June 20
 to the netbsd-3 branch and tested extensively.  I've booted FFSv1, FFSv2
 and LFSv2 root file systems from FS_RAID partitions.

 So, how does that jive with you being unable to boot LFSv2 root with the
 same codebase?

 BTW, I did notice that an FFSv1 boot loader "understands" enough of an LFSv2
 file system to find the second stage, but craps out soon after.

 --chris

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.