FS#31061 - [initscripts] /etc/rc.shutdown fails with a separated /usr partition

Attached to Project: Arch Linux
Opened by benjamin hennion (kihanos) - Wednesday, 08 August 2012, 13:44 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 13 November 2012, 12:31 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture x86_64
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Packages versions:
initscripts 2012.07.5-1
mkinitcpio 0.10-1

Using a separated /usr partition mounted with the initcpio hook "usr". The "shutdown" hook is used to keep initramfs in /run/initramfs. The problem is that the rc.shutdown script runs the function umount_all before calling pivot_root. umount_all unmounts /usr and the script fails doing anything afterwards:

bash: /bin/mount: no such file or directory
bash: /bin/mount: no such file or directory
bash: /bin/mount: no such file or directory
bash: /bin/mount: no such file or directory
bash: /bin/mount: no such file or directory
bash: /bin/mount: no such file or directory
bash: /bin/mount: no such file or directory
bash: /sbin/pivot_root: no such file or directory
bash: /sbin/chroot: no such file or directory

and that's all...

Adding /usr to the list of not-to-be-unmounted in umount_all makes it all work...
This task depends upon

Closed by  Tom Gundersen (tomegun)
Tuesday, 13 November 2012, 12:31 GMT
Reason for closing:  Won't fix
Additional comments about closing:  see last comment
Comment by Dave Reisner (falconindy) - Friday, 10 August 2012, 17:33 GMT
Not a mkinitcpio bug. I'm rather impressed that you were able to unmount a directory that's guaranteed to be in use. Needless to say, I can't reproduce this.
Comment by benjamin hennion (kihanos) - Saturday, 11 August 2012, 19:28 GMT
Hum... I redid my all filesytem structure and it does not happen anymore. I have a possible explanation though. My /usr directory was an aufs directory, "merging" a RO squashfs (mounted somewhere) and a RW directory. The RW directory having priority, maybe rc.shutdown unmounted the RO squash file system. Then needing something else, which was not in the RW directory, the script was lost and sad.
Aufs being not supported by Arch mainstream kernel, it may not be very important...

Loading...