From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 3 17:08:13 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7AE3ABD for ; Tue, 3 Mar 2015 17:08:13 +0000 (UTC) Received: from weser.webweaving.org (weser.webweaving.org [148.251.234.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.webweaving.org", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5909694F for ; Tue, 3 Mar 2015 17:08:12 +0000 (UTC) Received: from [10.11.0.122] (5ED23D33.cm-7-3a.dynamic.ziggo.nl [94.210.61.51]) (authenticated bits=0) by weser.webweaving.org (8.14.9/8.14.9) with ESMTP id t23GpBgo058577 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 3 Mar 2015 17:51:12 +0100 (CET) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: weser.webweaving.org: Host 5ED23D33.cm-7-3a.dynamic.ziggo.nl [94.210.61.51] claimed to be [10.11.0.122] From: Dirk-Willem van Gulik Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: pivot_root() and FreeBSD Message-Id: <654E1C53-8536-406D-B218-EA6F20848821@webweaving.org> Date: Tue, 3 Mar 2015 17:51:10 +0100 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2087\)) X-Mailer: Apple Mail (2.2087) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (weser.webweaving.org [148.251.234.232]); Tue, 03 Mar 2015 17:51:12 +0100 (CET) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 17:08:13 -0000 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=E2=80=99** ?=20 Thanks, Dw. *: the scenario is a set of tests and generation scripts during which = there should be no reliance on the network - and where we=E2=80=99d 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_Pivot= Root4BSD.pdf 2012-10-17: Pivot Root (Kernel Module for NetBSD 6.x 20121017) / = http://www.netbsd.org/~ast/patches/pivot_root.tbz_20121017