From owner-freebsd-hackers@freebsd.org Mon Aug 3 03:49:13 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FF019B265E for ; Mon, 3 Aug 2015 03:49:13 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 79314D6B for ; Mon, 3 Aug 2015 03:49:13 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-239-102.lns20.per1.internode.on.net [121.45.239.102]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t733n0K5087120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 2 Aug 2015 20:49:05 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: pivot_root() and FreeBSD To: Dirk-Willem van Gulik , freebsd-hackers@freebsd.org References: <654E1C53-8536-406D-B218-EA6F20848821@webweaving.org> From: Julian Elischer Message-ID: <55BEE4A5.40107@freebsd.org> Date: Mon, 3 Aug 2015 11:48:53 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <654E1C53-8536-406D-B218-EA6F20848821@webweaving.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 03:49:13 -0000 On 3/4/15 12:51 AM, Dirk-Willem van Gulik wrote: > I am trying to do, in effect an PXE boot/install on a local volume - and would like the machine to cut over into normal running without a reboot*. > > So effectively I would like to do the equivalent of pivot_root() and perhaps something special for init(8), and then jettison md, nfs and what not. > > Is there any way to do this on 10.1 or -current ? Or has anyone recently done work on Adrian Steinmann his 'Pivot Root for BSD’** ? > > Thanks, there is SOME work going on on a similar thing.. It was in the recent project status. https://www.freebsd.org/news/status/report-2015-04-2015-06.html#Root-Remount Also have you tried simply using a small memory filesystem loaded with the kernel? > > Dw. > > > *: the scenario is a set of tests and generation scripts during which there should be no reliance on the network - and where we’d like to avoid a reboot given the state we are bringing the disks and a USB device into.. Thus precluding an NFS mounted install during the test -and- precluding a reboot post install. Yet it is very desirable to have a powercycle use PXE to create a known baseline. > **: http://www.netbsd.org/gallery/presentations/ast/2012_EuroBSDCon/Talk_PivotRoot4BSD.pdf > 2012-10-17: Pivot Root (Kernel Module for NetBSD 6.x 20121017) / http://www.netbsd.org/~ast/patches/pivot_root.tbz_20121017 > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > >