FS#16497 - [initscripts] rc.sysinit and /etc/mtab small issue with mount.aufs
Attached to Project:
Arch Linux
Opened by Gerardo Exequiel Pozzi (djgera) - Wednesday, 07 October 2009, 04:26 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 19 October 2009, 13:29 GMT
Opened by Gerardo Exequiel Pozzi (djgera) - Wednesday, 07 October 2009, 04:26 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 19 October 2009, 13:29 GMT
|
Details
Current rc.sysinit delete the file /etc/mtab then a normal
mount recreate it with a simple remount, but the mount.aufs
don't work without /etc/mtab.
stat_busy "Mounting Local Filesystems" /bin/mount -n -o remount,rw / /bin/rm -f /etc/mtab* # make sure / gets written to /etc/mtab /bin/mount -o remount,rw / Will get an error mesagge like this: /sbin/mount.aufs:mount.aufs.c:209: /etc/mtab: No such file or directory. Additional info: aufs2-util-20090611-3 (also 20090910-1) initscripts-2009.08-1 Maybe this line "/bin/rm -f /etc/mtab*" is safe to replace/append with ": >| /etc/mtab". |
This task depends upon
Just an FYI though, you should report this upstream, because no other mount commands fail like this
One note: use ">|" instead of ">" to always overwrite if noclobber is active, like now is for /var/log/dmesg ;)
Yes, I will send an email to the author.