On Wed, Feb 11, 2009 at 10:18 PM, <sf...@users.sourceforge.net> wrote: > [...] > > But I noticed it won't work for you. > Because you are over-mouning /bin, the mount command > ("remount,mod:/bin=ro") at shutdown-time will not find "/bin" branch > which should be set readonly. > > If you don't want to upgrade and re-compile your aufs, you need to > separate these names by tricky binding or something. > For example, > > (boot) > mkdir /sysroot/aufs/bin > mount -t aufs -o xino=/sysroot/tmp/xino,br:/sysroot/bin:/sysroot/.mount/bin \ > aufs /sysroot/aufs/bin > mount -o bind /sysroot/aufs/bin /sysroot/bin
System boots fine. > > (shutdown) > umount /sysroot/bin > # you may specify $PATH > mount -o remount,ro,mod:/bin=ro /aufs/bin > After the kernel starts executing init ( and comes out of the initrd ), there is no /sysroot - it becomes / Hence this command gives error: umount: /sysroot/bin not found. So, If I try "umount /bin" it says: umount: /bin: device is busy However, the remount goes ahead fine. Thanks, Nitin. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com