Date: Thu, 23 Jun 2005 21:34:13 -0400 From: Eric <eric@xecu.net> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@freebsd.org Subject: Re: boot into sigle user from cd Message-ID: <42BB6315.9080201@xecu.net> In-Reply-To: <20050623200414.GE1145@gothmog.gr> References: <42BB0AE8.3010305@xecu.net> <20050623200414.GE1145@gothmog.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
Giorgos Keramidas wrote: >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). > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > Excellent, Thank you so very much that did the trick! Eric
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42BB6315.9080201>