: I'd suggest you to, : compie aufs withe CONFIG_AUFS_HINOTIFY enabled. : mount -o ro /dev/sd /root.ro : mount -t tmpfs tmpfs /root.rw : mount -t aufs -o br:/root.rw:/root.ro none /root : mount -o move /root.ro /root/root/ro : mount -o move /root.rw /root/root/rw : swtich root to /root... : : When you want to change /root.ro directly then, : mount -o remount,udba=inotify / : mount -o remount,rw /root/root/ro : modify /root/root/ro : mount -o remount,ro /root/root/ro : mount -o remount,udba=reval / : : But if there is the same named file in /root/root/rw already, you will : not see the modified file in /root/root/ro.
I've been running with it this way for weeks and it's working great. Thanks. I did notice one weird issue. When I boot up the system all the expected files are created on my RW ramdisk but the ones I don't understand are the kernel modules. Every time I load a module outside of those done in the initramfs then a copy of that module is put on the RW filesystem. I can do a diff between the RO and RW modules and they are exactly the same even down to the timestamp. Why is this done and is there a reason I just can't remove them from the RW filesystem after they are loaded? -- Matthew Harrell Bit Twiddlers, Inc. [email protected] ------------------------------------------------------------------------------
