Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2005 23:04:14 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Eric <eman@xecu.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: boot into sigle user from cd
Message-ID:  <20050623200414.GE1145@gothmog.gr>
In-Reply-To: <42BB0AE8.3010305@xecu.net>
References:  <42BB0AE8.3010305@xecu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-06-23 15:18, Eric <eman@xecu.net> wrote:
> I am building a custom recovery cd and would like to have it boot into
> sigle user mode automatically.
>
> Within the loader.rc file I have:
>  set boot_single
>
> which boots into signle usr, however, it prompts for the default shell;
>
> "Enter full pathname of shell or RETURN for /bin/sh:"
>
> Is there a way to set the default shell so that it does not prompt?

IIRC, it is init(8) that prints this final message and not the loader.

Right...

if you look at /usr/src/sbin/init/init.c, you'll see that init(8) builds
with -DDEBUGSHELL.  Removing this from the Makefile and rebuilding
/sbin/init disabled the prompt for a shell and will just fire up /bin/sh
(or whatever _PATH_BSHELL was when /sbin/init was built).




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050623200414.GE1145>