From owner-freebsd-questions@FreeBSD.ORG Thu Jun 23 20:04:33 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 6846416A41C for ; Thu, 23 Jun 2005 20:04:33 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7DC443D55 for ; Thu, 23 Jun 2005 20:04:32 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a090.otenet.gr [212.205.215.90]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j5NK4QR4013753; Thu, 23 Jun 2005 23:04:30 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j5NK4F4P001496; Thu, 23 Jun 2005 23:04:15 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j5NK4F1M001495; Thu, 23 Jun 2005 23:04:15 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 23 Jun 2005 23:04:14 +0300 From: Giorgos Keramidas To: Eric Message-ID: <20050623200414.GE1145@gothmog.gr> References: <42BB0AE8.3010305@xecu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42BB0AE8.3010305@xecu.net> 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: Thu, 23 Jun 2005 20:04:33 -0000 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).