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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Andrea Scarpino (BaSh)
Monday, 19 October 2009, 13:29 GMT
Reason for closing:  Fixed
Comment by Aaron Griffin (phrakture) - Wednesday, 07 October 2009, 16:53 GMT
http://projects.archlinux.org/?p=initscripts.git;a=commitdiff;h=38f6917c9ec97f5d72fb0c72b001e7a97bfe6122

Just an FYI though, you should report this upstream, because no other mount commands fail like this
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 07 October 2009, 23:18 GMT
Thanks for pushing 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.
Comment by Aaron Griffin (phrakture) - Thursday, 08 October 2009, 03:16 GMT
That needed changing in 3 places. I've fixed in it all cases now. Thanks for the FYI

Loading...