Read-only, diskless boot

Jay L. T. Cornwall jay at
Sun Mar 9 23:01:57 UTC 2008

Jay L. T. Cornwall wrote:

> All I need is:
>   * / partition to work in read-only mode.
>   * Volatile directories such as /root, /var and /tmp to be populated
>     into a memory filesystem on boot.

OK, this turned out to be easier after I spent some time reading through 
the /etc/rc.initdiskless script.

All that was needed was to create:

And fill them with the files to be populated in a memory filesystem on 
reboot. A md_size file inside each dir tweaks the size of the memory 
disks according to the script.

Then touch /etc/diskless and the magic happens!

Jay L. T. Cornwall

More information about the freebsd-questions mailing list