compressed read only filesystem
Florian Lohoff
flo at rfc822.org
Sun Oct 10 23:46:58 CEST 2004
Hi,
ich probiere gerade mit einem system rum das vom CF booted. Ich wuerde
gerne einen minimalrouter drauf aufbauen der von der CF booted und
laeuft. Das ganze am liebsten natuerlich read-only. Trotzdem wuerde ich
gerne /etc aenderungen zurueckschreiben ins system bzw persistenz
speichern koennen.
Mein derzeitiger versuch endet leider im oops.
Also - kernel + initrd der dann folgendes macht:
#!/bin/sh
mount -n -r -t vfat /dev/hda1 /dosroot
mount -n -r -o loop -t cramfs /dosroot/cramfs /cramfsroot
cd /cramfsroot
/sbin/pivot_root . boot
exec /usr/sbin/chroot . /sbin/init
Was soweit auch funktioniert und die kiste bootet weiter. Danach muesste
dann das cramfs ein ramfs auf /etc mounten und entsprehend auf
/initrd/dosroot/etc.tgz befuellen (/initrd ist ja die alte initrd)
Problem derzeit ist das die kiste halbwegs durch den boot kommt und dann
wegoopst mit einem undereferencend pointer. Der call trace legt nahe das
es im page cache/mmap zeugs ist. Ich vermute da geht was "massiv"
schief mit dem cramfs als root von einer dos partition.
Hat jemand vielleicht andere creative ideen sowas zu loesen ?
Flo
--
Florian Lohoff flo at rfc822.org +49-171-2280134
Heisenberg may have been here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20041010/dfc4004f/attachment.sig>
More information about the Linux
mailing list