Ilya Sretensky:
> So the mounting script is still necessary for the mounting of ro
> branch, as your answer says.
> That makes my attempt pointless, since it involves the boot time
> mounting script again.
> But why is the ro branch mounting necessary in the script precisely
> and not in the fstab file?

It is totally up to your root dir.
As you know, aufs requires other (mounted) dirs as its branch (member
dir).
It means that, when you mount aufs you need other dirs already mounted.
And how and when do you mount them?
Usually people makes it in the initramfs and completes the root aufs and
then switch_root.

If you don't want to take this way, I'd suggest you to try these.
- mount nothing in your initramfs script
- write fstab as
/dev/... / ro
tmpfs /brabra
aufs / aufs br=/brabra:/

Note that
- it depends that your mount(8) at the boot time processes these entries
  one by one in the written order in fstab. Otherwise it won't work.
- I have never tried this approach.


J. R. Okajima

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Reply via email to