boot into sigle user from cd

Eric eric at xecu.net
Fri Jun 24 01:34:27 GMT 2005


Giorgos Keramidas wrote:

>On 2005-06-23 15:18, Eric <eman at 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 at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>  
>
Excellent, Thank you so very much that did the trick!

Eric





More information about the freebsd-questions mailing list