Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#36629 - [mkinitcpio] hangs in autodetect hook

Attached to Project: Arch Linux
Opened by David Strobach (laloch) - Wednesday, 21 August 2013, 12:15 GMT
Last edited by Dave Reisner (falconindy) - Friday, 13 September 2013, 12:05 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
mkinitcpio hangs in autodetect hook while invoking

findmnt -snero fstype --tab-file '/etc/fstab' /usr

on a system with stale NFS mount.
In my case the stale mount was NFSv3 mounted under /mnt, not /usr,
so this can affect even users without NFS-mounted /usr directory.

Maybe the --timeout option could help.

Additional info:
mkinitcpio 0.15.0-1
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 13 September 2013, 12:05 GMT
Reason for closing:  Works for me
Additional comments about closing:  Committed https://projects.archlinux.org/mkinitcpi o.git/commit/?id=31e5439dd anyways, to be safe
Comment by Dave Reisner (falconindy) - Wednesday, 21 August 2013, 13:25 GMT
Timing out will cause autodetect to fail to detect /usr and your initramfs may end up not doing what you expect. I'm doubtful that the --timeout option affects anything other than the --poll option anyways.

Can you paste an strace log of findmnt when it hangs? It makes absolutely no sense that the command you point out would access anything other than /usr
Comment by Dave Reisner (falconindy) - Wednesday, 21 August 2013, 14:32 GMT
Alternatively, you can try the following:

- if usrfstype=$(findmnt -snero fstype --tab-file '/etc/fstab' /usr); then
+ if usrfstype=$(findmnt -snero fstype --tab-file '/etc/fstab' -T /usr); then

But I still can't fathom that this is really at fault for accessing anything outside of /usr.
Comment by Dave Reisner (falconindy) - Sunday, 25 August 2013, 14:07 GMT
Ping
Comment by David Strobach (laloch) - Monday, 26 August 2013, 06:38 GMT
Hello, sorry for the delay. I was out of office for a few days.
I'm not able to reproduce the stale mount which wouldn't be unmountable even by umount -lf so I can't provide any more info. I'll keep trying.

Loading...