Subject: Re: root on md forces single-user flag for init
To: None <port-i386@netbsd.org>
From: Larry Colen <lrc@recourse.com>
List: port-i386
Date: 03/16/2001 13:26:40
Does this have anything to do with why when I finally got a CD that
would boot, it went to the sysinst software?  The funny thing is that
I can't find sysinst on the cdrom.  I suspect that I need to mount the
.fs file as vnd0 or something to find sysinst.

   Larry

On Fri, Mar 16, 2001 at 11:13:40AM +0100, Andreas Johansson wrote:
> Hi!
> 
> I would like to know why the kernel forces the single-user flag for init
> if root is on a memory disk?
> 
> All floppy images use the small init that only does single-user anyway, so
> it seems this behavior is superfluous. This kinda bit me since I wanted to
> have /etc/rc run on my memory disk using standard init.
> 
> Here is the responsible code (sys/arch/i386/i386/md_root.c:71):
> 
> /*
>  * This is called during open (i.e. mountroot)
>  */   
> void
> md_open_hook(unit, md)
> 	int unit;
>   	struct md_conf *md;
> {
>   	if (unit == 0) {
>                 /* The root ramdisk only works single-user. */
>    		boothowto |= RB_SINGLE;
>     	}
> }
> 
> /Andreas

-- 
Larry Colen - Recourse Technologies - lrc@recourse.com - 650-381-8090