From owner-freebsd-questions@FreeBSD.ORG Fri Sep 23 13:23:56 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B74F1065679; Fri, 23 Sep 2011 13:23:56 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id F33A28FC08; Fri, 23 Sep 2011 13:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; q=dns/txt; s=DKIM-NAME-SERVICES; d=a1poweruser.com; h=From:To:Cc:Subject:Message-ID:X-Sender:X-Envelope-From; l=500; bh=g2CjeT3ApLK2NZOFiGzJiKUXyp6HdiF2oeExcYdl86k=; b=gSq6w4XCNZ2BEaoHOTpuAnjNVEzMWeRi23gqO6wynY4V1/4yhPRjGbUk9zxABdmlsce9WiQFK6bI835hVEl0/H132UzRM+AeWhOdpvIxpI/Qp5I8d0HMqgvPUIiZfeggNRHTFWlRa/F2Nn9QFE6nr0dythM2TYPSp5OszD3qmkg= Received: from [192.168.1.64] ([76.240.47.196]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 23 Sep 2011 06:23:51 -0700 Message-ID: <4E7C885F.10100@a1poweruser.com> Date: Fri, 23 Sep 2011 09:23:43 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Nathan Whitehorn References: <4E7BEA42.4020004@a1poweruser.com> <4E7C4188.2050508@freebsd.org> In-Reply-To: <4E7C4188.2050508@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Sep 2011 13:23:51.0241 (UTC) FILETIME=[08BBD390:01CC79F4] X-Sender: fbsd8@a1poweruser.com X-Envelope-From: fbsd8*a1poweruser.com Cc: freebsd-current@freebsd.org, FreeBSD Questions Subject: Re: 9.0 bsdinstall usage 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, 23 Sep 2011 13:23:56 -0000 Nathan Whitehorn wrote: > On 09/23/11 04:09, Fbsd8 wrote: >> I have installed 9.0 bata2 from cd and the net. In both cases after the >> completion of the install and rebooting, the bsdinstall scripts still >> remain on the new installed system. If I interpret the code logic >> correctly, bsdinstall can ONLY be used for an original install. It's not >> intended by design to be used any other time, unlike sysinstall. I think >> the "auto" script should have code added to remove all traces of the >> bsdinstall environment at the conclusion of the install. This way >> bsdinstall fulfills the original design goals and guarantees no one can >> exec it by accident and kill there running system. > > It's quite useful after install time for installing new systems (e.g. > jails). It also uses approximately zero disk space. > -Nathan > > bsdinstall/auto logic falls down through the partition hard drive logic with no way to bypass it. It will look for free space on the H.D. you booted from and issue message about no free space, ask you if you want to try another drive and then use the booted drive as target to redo the partitioning again thus scratching your running system. In the normal sense there is no way bsdinstall can be used to create jails. A jail does not occupies a whole H.D nor do you boot a jail as a standalone host. The qjail port is there for the purpose of creating and administration of jails. Its not a question of how much space bsdinstall occupies on the H.D. after the original install. Its that some poor soul may try to use it and trash there newly installed running system by accident. And if there were multiple os's on that H.D. there all gone in a heart beat. We have to protect the poor user from them selfs doing stupid things. As I understand it bsdinstall is a replacement for sysinstall. Sysinstall tried to be everything to everybody and turned into a can of worms. There is nothing wrong about limiting bsdinstall to a roll of "original installs" only. KISS These 2 statements should be added at the end of bsdinstall/auto to complete the clean up of the install process. rm /usr/sbin/bsdinstall rm -rf /usr/libexec/bsdinstall Another benefit of doing this is it will no longer be necessary to create man pages for bsdinstall.