pivot_root() and FreeBSD

Edward Tomasz Napierała trasz at FreeBSD.org
Sat Jun 13 09:27:10 UTC 2015


On 0303T1751, 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’** ? 

I have something similar in purpose in the works:

https://reviews.freebsd.org/D2698

Perhaps you could take a look to see if it fits your use case?  The code
needs a rewrite, but the usage should stay the same.



More information about the freebsd-hackers mailing list