[uClibc] Readonly root filesystem a la Pebble

Doyle, Patrick WPD at dtccom.com
Mon May 9 19:54:23 UTC 2005


Thanks Eric,
That's exactly what I was looking for...

--wpd

> -----Original Message-----
> From: Erik Andersen [mailto:andersen at codepoet.org] 
> Sent: Monday, May 09, 2005 3:39 PM
> To: Doyle, Patrick
> Cc: 'uclibc at uclibc.org'
> Subject: Re: [uClibc] Readonly root filesystem a la Pebble
> 
> 
> 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.
> 
>  -Erik
> 
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
> 

Patrick Doyle
DSP Design Engineer
(603) 546-2179

 

This communication is from DTC Communications, Inc. and is intended to be
confidential and solely for the use of the persons or entities addressed
above.  If you are not an intended recipient, be aware that the information
contained herein may be protected from unauthorized use by privilege or law,
and any copying, distribution, disclosure, or other use of this information
is prohibited.  If you have received this communication in error, please
contact the sender by return e-mail or telephone the above number
immediately and delete or destroy all copies.  Thank you for your
cooperation.

 





More information about the uClibc mailing list