Nitin Bhardwaj:
> Sorry for the confusion; I thought you referred to the boot-time aufs
> mounting. I guess you meant :
> "mount -o remount,ro,mod:/bin=ro none /bin"  while shutting down, will try 
> that.
        :::
> You mean echo correct line into /etc/mtab (from /proc/mounts) , right ?

Yes.

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

(shutdown)
umount /sysroot/bin
# you may specify $PATH
mount -o remount,ro,mod:/bin=ro /aufs/bin


J. R. Okajima

------------------------------------------------------------------------------
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

Reply via email to