On Thu, Apr 2, 2009 at 10:23 AM,  <sf...@users.sourceforge.net> wrote:
>
> Nitin Bhardwaj:
>> And I'm creating 4 unions in the init script. Three of them go fine (
>> /bin, /sbin and /lib ) , but for /usr the mount.aufs gives error:
>> failure bad /proc/mounts 1
>>
>> Can the mtab being a soft link be a problem for mount.aufs and umount.aufs ?
>
> I don't think so because your three aufs mounts succeeded.
> Will you try uncommenting the line "#set -x; echo $@" in mount.aufs?
> It will produce lots of debug print, and I hope we can find out what is
> wrong.
>
>
> J. R. Okajima
>

Hi,

I noticed that when I first use mount.aufs for the first union, it
replaces the soft link /etc/mtab with a real separate file /etc/mtab.
Meaning, the /etc/mtab is no longer a soft link now and two lines get
added for the single mount and the last line has extraneous
characters:
Here are the contents:

none /bin aufs rw,xino=/.aufs/bin/.aufs.xino,br:/.aufs/bin=rw:/bin=ro 0 0
none /bin aufs 
\\015w,xino=/.aufs/bin/.aufs.xino,b\\015:/.aufs/bin=\\015w:/bin=\\015o
0 0

(I guess for every 'r' in either "rw" or "ro", there is a \\015 )

After the two more mounts, the /etc/mtab file gets more corrupt ( the
lines appended and the format ).
o 0 0n=\134=\134n/.aufs.xino,b\134
o 0 0in=\134=\134n/.aufs.xino,b\134
 aufs     0 034
 aufs     0 034

/proc/mounts file's contents seem OK.

I'll mail the debug output of mount.aufs shortly.

Thanks,
Nitin.

------------------------------------------------------------------------------

Reply via email to