From owner-freebsd-questions@FreeBSD.ORG Fri Jun 24 01:34:26 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7CB316A41C for ; Fri, 24 Jun 2005 01:34:26 +0000 (GMT) (envelope-from eric@xecu.net) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C321843D49 for ; Fri, 24 Jun 2005 01:34:26 +0000 (GMT) (envelope-from eric@xecu.net) Received: from [127.0.0.1] ([70.106.48.219]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IIK00IR9F1C73X9@vms040.mailsrvcs.net> for freebsd-questions@freebsd.org; Thu, 23 Jun 2005 20:34:26 -0500 (CDT) Date: Thu, 23 Jun 2005 21:34:13 -0400 From: Eric In-reply-to: <20050623200414.GE1145@gothmog.gr> To: Giorgos Keramidas Message-id: <42BB6315.9080201@xecu.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <42BB0AE8.3010305@xecu.net> <20050623200414.GE1145@gothmog.gr> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) Cc: freebsd-questions@freebsd.org Subject: Re: boot into sigle user from cd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2005 01:34:27 -0000 Giorgos Keramidas wrote: >On 2005-06-23 15:18, Eric 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