Hello Guan,

Guan Xin:
> mount -t aufs -o br=3D/mnt-cow:/mnt-ro aufs /new-root
> mount --bind /mnt-cow /new-root/live/cow
> mount --bind /mnt-ro /new-root/live/ro
> umount -l /mnt-cow /mnt-ro
> exec switch_root /new-root "$INIT" "$RUNLEVEL"
>
> Then /live/cow and /live/ro will be empty.
> They will not be empty when I omit the "umount -l".

How is your /proc/mounts? Does it contain the entry of /live/cow and
/live/ro before and after switch_root?
I think finding out when the entry disappeared from /proc/mounts will be
the first step of seeing what is happening.


J. R. Okajima

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net

Reply via email to