From owner-freebsd-questions@FreeBSD.ORG Wed Dec 12 18:22:42 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE636DB5 for ; Wed, 12 Dec 2012 18:22:42 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id A9BEA8FC12 for ; Wed, 12 Dec 2012 18:22:42 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.16]) by ltcfislmsgpa02.fnfis.com (8.14.5/8.14.5) with ESMTP id qBCIMeiU028440 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 12 Dec 2012 12:22:41 -0600 Received: from [10.0.0.102] (10.14.152.61) by smtp.fisglobal.com (10.132.206.16) with Microsoft SMTP Server (TLS) id 14.2.309.2; Wed, 12 Dec 2012 12:22:08 -0600 Subject: Re: mfsroot starts sysinstall how? MIME-Version: 1.0 (Apple Message framework v1283) From: Devin Teske In-Reply-To: Date: Wed, 12 Dec 2012 10:22:04 -0800 Message-ID: References: To: Rick Miller X-Mailer: Apple Mail (2.1283) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327, 1.0.431, 0.0.0000 definitions=2012-12-12_07:2012-12-12,2012-12-12,1970-01-01 signatures=0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 18:22:43 -0000 On Dec 12, 2012, at 7:50 AM, Rick Miller wrote: > On Wed, Dec 12, 2012 at 10:44 AM, Rick Miller = wrote: >> Hi All, >>=20 >> How is sysinstall invoked in a FreeBSD 8.x mfsroot.gz? >=20 It's actually invoked in the place of init(8). > To explain more, I would like to boot into a shell as opposed to > sysinstall. safe mode and single user don't seem to. >=20 Safe mode and single user won't work because sysinstall is acting as init a= nd it doesn't implement those functions. To run a shell script in the place of init(8), you have to do some bootstra= pping. Enter DruidBSD ( =85 not to be confused with previously discussed Druid [i= n another thread]). DruidBSD is a ~24MB ISO (~32MB if you get the version that has the extra to= ols like memtest86, etc.): http://druidbsd.sourceforge.net/download.shtml#DruidBSD Not only does it do what you're asking about =85 boot to a shell =85 but yo= u can customize it. It uses the same build framework as the Druid (requiring GNU make, mkisofs,= and [optionally] perl -- only required if you want the ISO to work from bo= th CD/DVD _and_ USB thumb drive). You can download the source code, make ch= anges to the custom /etc/rc which does the bootstrapping for you, and more = -- then when finished, simply say "gmake freebsd" to produce your new custo= m media. It doesn't stop there=85 the /etc/rc that's in the mfsroot (link below): http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druidbsd/dep/f= reebsd/mfsroot/src/etc/rc?revision=3D1.1.1.1&view=3Dmarkup Is designed to bust you out of the mfsroot and bootstrap you not into a der= elict sh(1) prompt, but instead a [more] usable bash(1) prompt complete wit= h hundreds of extra utilities. PRO TIP: The Druid (which is the [much] larger ~500MB FreeBSD Installer tha= t uses the same build framework) actually has a miniature version of DruidB= SD tucked into its boot loader. That is to explain that when you use the Fr= eeBSD Druid installer, the beastie boot menu has a fancy feature where you = can select a different mfsroot from the menu (if you select the "rescue_mfs= root" then you're essentially invoking a custom version of DruidBSD, which = we're talking about right now w/respect to replacing sysinstall(8) in an mf= sroot with a bootstrap-to-interactive-shell). --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.