[uClibc] Readonly root filesystem a la Pebble

Allan Clark allanc at chickenandporn.com
Tue May 10 06:29:42 UTC 2005


Erik Andersen wrote:

>On Mon May 09, 2005 at 02:01:29PM -0400, Doyle, Patrick wrote:
>  
>
>>I was wondering if anybody has done any work to create a read only root
>>filesystem, such as that used in pebble, that can be tweaked occasionally.
>>Basically, I would expect that it would be an ext2 filesystem with symbolic
>>links to volatile information pointing to files in /var.
>>
>>Any thoughts?  Any pointers?
>>    
>>
>
>If you are using a read-only rootfs such as cramfs, you'll want
>to add entries such as:
>
>    null::sysinit:/etc/init.d/mntdev
>    null::sysinit:/etc/init.d/mntetc
>
>to  your /etc/inittab file, right after mounting tmpfs on /tmp
>but before calling '/bin/mount -a' (lest /dev/pts be hidden).  I
>have attached the trivial mntdev and mntetc scripts which then
>allow you to update things like /etc/resolv.conf due to dhcp
>requests and add and modify device nodes under /dev as needed.
>
Aren't there overlay and union filesystems?  Anyone try them yet?

http://sourceforge.net/projects/ovlfs/

Allan



More information about the uClibc mailing list