Subject: root on md forces single-user flag for init
To: None <port-i386@netbsd.org>
From: Andreas Johansson <ajo@wopr.campus.luth.se>
List: port-i386
Date: 03/16/2001 11:13:40
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