Subject: Re: The smallest multi-user system
To: NetBSD - current-users <current-users@netbsd.org>
From: Brian Rose <lists@brianrose.net>
List: current-users
Date: 08/15/2003 11:41:48
Brian Rose wrote:
>
> Jeremy C. Reed wrote:
>
>>
>> Maybe edit the init.c code to do some fprintf(stderr,...) at different
>> places with some debugging notes to let you know where you are.
>>
>
> OK, I figured out that init is starting in single user mode because is
> is told to.
>
> while ((c = getopt(argc, argv, "sf")) != -1)
> switch (c) {
> case 's':
> requested_transition = single_user;
> break;
>
> The flag is being set to -s. Who, where, and why? (looking in kernel
> code, though I know not where).
>
>
This is done in the conf file when building the kernel, as indicated by Allen Briggs.
I thought I rebuilt the kernel with the flag cleared, but I'll try it again.
The offending kernel code is in sys/kern/init_main.c, for those who want to see.