Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Mar 2008 23:01:55 +0000
From:      "Jay L. T. Cornwall" <jay@jcornwall.me.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Read-only, diskless boot
Message-ID:  <47D46C63.6060203@jcornwall.me.uk>
In-Reply-To: <47D440EC.2080507@jcornwall.me.uk>
References:  <47D440EC.2080507@jcornwall.me.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
   /conf/base/root
   /conf/base/tmp
   /conf/base/var

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
http://www.jcornwall.me.uk/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47D46C63.6060203>