Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Mar 2015 17:51:10 +0100
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        freebsd-hackers@freebsd.org
Subject:   pivot_root() and FreeBSD
Message-ID:  <654E1C53-8536-406D-B218-EA6F20848821@webweaving.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?654E1C53-8536-406D-B218-EA6F20848821>