[Bug 1055641] New: Command failed on shutdown phase
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 Bug ID: 1055641 Summary: Command failed on shutdown phase Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: otuominen@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 738262 --> http://bugzilla.opensuse.org/attachment.cgi?id=738262&action=edit screenshot When shutting down Leap, system is trying to run command which fails. See attached screenshot. I haven't setup any commands which should be run at shutdown. So this is a bug but I cannot track what is causing it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c1 Neil Rickert <nwr10cst-oslnx@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nwr10cst-oslnx@yahoo.com --- Comment #1 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- I have not seen this happen on 42.3. I regularly see it with Tumbleweed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c2 --- Comment #2 from Olli Tuominen <otuominen@suse.com> --- What logs I should provide to pin down the issue? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c3 --- Comment #3 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- If what you are seeing is similar to what I see on Tumbleweed, then I don't think there are any useful logs. This is happening after all file systems have been unmounted (except, perhaps the ramdisk from the initrd), so there is nowhere for any logs to go. I suspect that it is somehow related to "systemd", because nothing else should be running at that stage of shutdown. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c5 --- Comment #5 from Neil Rickert <nwr10cst-oslnx@yahoo.com> ---
I'm wondering how you can deduce from the screenshot that this is happening after all file systems have been unmounted.
I made that comment about "unmounted". It is based on what I see when shutting down Tumbleweed. In my grub boot line, I have removed "splash=silent". So I see lots of boot messages and lots of shutdown messages. When I see that series of "Command failed", I have already seen the unmount messages, including one "failed to unmount" message (which seems an unimportant "bug"). Otherwise, what I see is almost identical to the screenshot, except that the last line is usually "restarting" instead of "powering off". -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c6 Olli Tuominen <otuominen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(otuominen@suse.co | |m) | --- Comment #6 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740133 --> http://bugzilla.opensuse.org/attachment.cgi?id=740133&action=edit debug log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c7 Olli Tuominen <otuominen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(fbui@suse.com) --- Comment #7 from Olli Tuominen <otuominen@suse.com> --- Is "systemd-analyze set-log-level debug" permanent? Is "systemd-analyze set-log-level notice" default or how I revert it back? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c8 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(fbui@suse.com) | --- Comment #8 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #7)
Is "systemd-analyze set-log-level debug" permanent?
It's not persistent across reboots, if that's what you were asking for. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c9 --- Comment #9 from Franck Bui <fbui@suse.com> --- It would be great if you could have a look at: https://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1 More accurately: - Does "reboot -f" work ? - Does the reboot finally happen after waiting a few minutes (at least 3min) ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c10 --- Comment #10 from Olli Tuominen <otuominen@suse.com> --- Yes, reboot and shutdown happens. So, it is more those commands which fails - I didn't understand from the logs if there was a reason why they failed. And if they might have impact on the system. Or is it more timing issue which is more cosmetic. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c11 --- Comment #11 from Franck Bui <fbui@suse.com> --- (In reply to Franck Bui from comment #9)
- Does the reboot finally happen after waiting a few minutes (at least 3min) ?
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c12 --- Comment #12 from Olli Tuominen <otuominen@suse.com> --- (In reply to Franck Bui from comment #11)
(In reply to Franck Bui from comment #9)
- Does the reboot finally happen after waiting a few minutes (at least 3min) ?
Yes, almost immediately. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c13 --- Comment #13 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #12)
(In reply to Franck Bui from comment #11)
(In reply to Franck Bui from comment #9)
- Does the reboot finally happen after waiting a few minutes (at least 3min) ?
Yes, almost immediately.
I meant when doing "systemctl shutdown" or "shutdown" (without the '-f' switch). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c14 --- Comment #14 from Franck Bui <fbui@suse.com> --- Olli, Can you try to boot with the following options added to the kernel command line: "plymouth.enable=0 printk.devkmsg=on" Once you've finised booting, enter the following command: # mkdir -p /run/initramfs/etc/cmdline.d # echo "rd.debug rd.break=pre-shutdown rd.break=shutdown" > /run/initramfs/etc/cmdline.d/debug.conf # touch /run/initramfs/.need_shutdown # systemd-analyze set-log-level debug And then reboot with "reboot" If a debug shell pops up, could you show the content of "dmesg", at least the last parts ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c15 --- Comment #15 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740189 --> http://bugzilla.opensuse.org/attachment.cgi?id=740189&action=edit dmesg -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c16 --- Comment #16 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740190 --> http://bugzilla.opensuse.org/attachment.cgi?id=740190&action=edit debug shell -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c17 --- Comment #17 from Olli Tuominen <otuominen@suse.com> --- failed to get those to usb. :( -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c18 --- Comment #18 from Franck Bui <fbui@suse.com> --- OK so apparently there's something wrong with /dev/dm-0. We probably should have started by this: could you describe your setup, especially the one regarding your disks. Also from the debug shell, can you try to figure out what is using /dev/dm-0 and prevents the device to be detached ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c19 --- Comment #19 from Olli Tuominen <otuominen@suse.com> --- Dualboot Leap + Win10. Disk is SSD. dm-0 is root and btrfs. fdisk -l Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf6c468e5 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT /dev/sda2 1026048 214845439 213819392 102G 7 HPFS/NTFS/exFAT /dev/sda3 214845440 976773119 761927680 363.3G 8e Linux LVM Disk /dev/mapper/system-root: 40 GiB, 42949672960 bytes, 83886080 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/system-swap: 2 GiB, 2147483648 bytes, 4194304 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/system-home: 200 GiB, 214748364800 bytes, 419430400 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c20 --- Comment #20 from Olli Tuominen <otuominen@suse.com> --- So I'm guessing it is something to do with not able to unmount /var/log Sep 11 16:05:07 linux-ml6n.suse systemd[1]: Received SIGCHLD from PID 3812 (umount). Sep 11 16:05:07 linux-ml6n.suse systemd[1]: Child 3812 (umount) died (code=exited, status=32/n/a) Sep 11 16:05:07 linux-ml6n.suse systemd[1]: var-log.mount: Child 3812 belongs to var-log.mount Sep 11 16:05:07 linux-ml6n.suse systemd[1]: var-log.mount: Mount process exited, code=exited status=32 Sep 11 16:05:07 linux-ml6n.suse systemd[1]: var-log.mount: Changed unmounting -> mounted Sep 11 16:05:07 linux-ml6n.suse systemd[1]: var-log.mount: Job var-log.mount/stop finished, result=failed Sep 11 16:05:07 linux-ml6n.suse systemd[1]: Failed unmounting /var/log. Sep 11 16:05:07 linux-ml6n.suse systemd[1]: libmount event [rescan: yes] Sep 11 16:05:07 linux-ml6n.suse systemd[1]: libmount event [rescan: yes] Sep 11 16:05:07 linux-ml6n.suse umount[3812]: umount: /var/log: target is busy Sep 11 16:05:07 linux-ml6n.suse umount[3812]: (In some cases useful info about processes that Sep 11 16:05:07 linux-ml6n.suse umount[3812]: use the device is found by lsof(8) or fuser(1).) Sep 11 16:05:07 linux-ml6n.suse systemd[1]: Unmounted /var/spool. Sep 11 16:05:07 linux-ml6n.suse systemd[1]: Child 3836 (umount) died (code=exited, status=0/SUCCESS) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c21 --- Comment #21 from Neil Rickert <nwr10cst-oslnx@yahoo.com> ---
OK so apparently there's something wrong with /dev/dm-0
Since I reported seeing the same sort of messages with Tumbleweed, I'll comment here. I use an encrypted LVM. And "/dev/dm-0" is the access to that LVM. Inside the LVM, I have volumes "root1", "root2", "root3", "swap", "home". I use "ext4" for home and root. If the root file system is the "root1" volume, then the "home" volume is mounted at "/home". If the root file system is either the "root2" or "root3" volume, then the "home" volume is mounted at "/xhome". The shutdown messages seem to show the crypto being properly undone. And that happens before the "Command failed" messages show up. If I mount the "home" volume at "/xhome", then I usually see a message "Failed to unmount /xhome". I have checked by booting rescue media, and that file system shows as clean. So I think it fails to unmount it because it has already unmounted it, though I cannot see where. If I have given more detail than is relevant, please ignore that extra detail. Hmm, here's another point I should mention. I also have Tumbleweed on a spare partition on a laptop. In that case, the root file system is "/dev/sda8" and is not encrypted at all. But I do still mount "home" from the encrypted LVM at "/xhome" and I still use swap from the encrypted LVM. On that system, I still get the "Command failed" messages on shutdown. And I still see the "failed to unmount /xhome" (before the "Command failed"). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c22 --- Comment #22 from Franck Bui <fbui@suse.com> --- (In reply to Neil Rickert from comment #21)
Hmm, here's another point I should mention. I also have Tumbleweed on a spare partition on a laptop. In that case, the root file system is "/dev/sda8" and is not encrypted at all. But I do still mount "home" from the encrypted LVM at "/xhome" and I still use swap from the encrypted LVM. On that system, I still get the "Command failed" messages on shutdown. And I still see the "failed to unmount /xhome" (before the "Command failed").
In this case could you try to follow the procedure in comment #14 to see if you can get more destails with dmesg ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c23 --- Comment #23 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- Following the instructions from C14 The last few lines of the "dmesg" output (abbreviated) were: all DM devices detached spawned ... mdadm.shutdown as 3650 ... shutdown succeeded Successfully changed to root pivot returned to initrd watchdog: watchdog0: watchdog did not stop Break before pre-shutdown (shell prompt) I then entered CTRL-D That gave me another debug prompt, and a suggestion to save a file to a USB or elsewhere. However, it rebooted before I had time to try that. I'm guessing that the "watchdog did not stop" is related to the "Command failed" messages. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c24 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.molkentin@suse.com Flags| |needinfo?(daniel.molkentin@ | |suse.com) --- Comment #24 from Franck Bui <fbui@suse.com> --- (In reply to Neil Rickert from comment #23)
I'm guessing that the "watchdog did not stop" is related to the "Command failed" messages.
Daniel, it seems that those messages are emitted by dracut once systemd completed its shutdown sequence and gave the control to /shutdown script. Do you have an idea about those "Command failed" messages ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Command failed on shutdown |"Command failed" messages |phase |on shutdown phase -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c25 --- Comment #25 from Olli Tuominen <otuominen@suse.com> --- The LVM seems to be the common nominator. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c26 --- Comment #26 from Franck Bui <fbui@suse.com> --- (In reply to Franck Bui from comment #18)
OK so apparently there's something wrong with /dev/dm-0.
After some research it appears that the warnings: systemd-shutdown[1]: Detaching DM 254:0. systemd-shutdown[1]: Could not detach DM /dev/dm-0: Device or resource busy systemd-shutdown[1]: Not all DM devices detached, 1 left. are emitted because we're trying to detach the device that contains the rootfs. And this is doomed to fail as we're currently using it. Normally we should detect this case and skip detaching the DM device hosting the rootfs but in your case BTRFS is used and the detection was failing. I submitted a patch to fix that: https://github.com/systemd/systemd/pull/6811 However the original issue remains... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c27 --- Comment #27 from Franck Bui <fbui@suse.com> --- Neil, Olli, My current guess is that one of the dracut script called during the shutdown process triggers the errors you're seeing. And it might be /usr/lib/dracut/modules.d/90dm/dm-shutdown.sh. Could you try to edit this file and add "set -x" right after the first comments. Then recreate the initrd with "mkinitrd" and follow the instructions from comment #14 ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c28 --- Comment #28 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740587 --> http://bugzilla.opensuse.org/attachment.cgi?id=740587&action=edit journalctl -b -1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c29 --- Comment #29 from Olli Tuominen <otuominen@suse.com> --- So I did a set -x to /usr/lib/dracut/modules.d/90dm/dm-shutdown.sh Rebooted and used "plymouth..." for booting option. Did C#14 and rebooted. Attached the journalctl after rebooting. Didn't see anything special on pre.shutdown console's dmsg. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c30 --- Comment #30 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #29)
So I did a set -x to /usr/lib/dracut/modules.d/90dm/dm-shutdown.sh
Did you recreated the initrd at that point (by running mkinitrd) ?
Rebooted and used "plymouth..." for booting option. Did C#14 and rebooted.
Attached the journalctl after rebooting.
Nothing interesting is supposed to be recorded in the journal since all happens when journald is off... only on the console or in dmesg. BTW can you still see the "Command failed" messages ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c31 --- Comment #31 from Olli Tuominen <otuominen@suse.com> --- (In reply to Franck Bui from comment #30)
Did you recreated the initrd at that point (by running mkinitrd) ?
Now I did and there is so much messages and so fast that I cannot follow them.
Nothing interesting is supposed to be recorded in the journal since all happens when journald is off... only on the console or in dmesg.
ok -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c32 --- Comment #32 from Olli Tuominen <otuominen@suse.com> --- ok - so I got following: ... ++ devname=system-root ++ dmsetup -v --noudevsync remove system-root Command failed ++ return 1 ++ ret=1 ++ 'xfinal '!=' x ']' ++ info 'dmsetup ls --tree' ++ check_quiet ++ '[' -z yes ']' ++ echo '<30>dracut: dmsetup ls --tree' ++ dmsetup ls --tree ++ vinfo ++ read line ++ info system-root '(254:1)' ++ check_quiet ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c33 Olli Tuominen <otuominen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(daniel.molkentin@ | |suse.com) | --- Comment #33 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740606 --> http://bugzilla.opensuse.org/attachment.cgi?id=740606&action=edit command failed screenshot -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c34 --- Comment #34 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #32)
ok - so I got following:
... ++ devname=system-root ++ dmsetup -v --noudevsync remove system-root Command failed
Good we at least spotted the command that fails... What if you manually try to execute the failing command in the debug shell spawned by dracut ? Can you see more messages ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c35 --- Comment #35 from Olli Tuominen <otuominen@suse.com> --- Nope. It says only command failed. I increased -vvvvv and it said: dm version OF [16384] (*1) dm remove syste-root OF [16384] (*1) Command failed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c36 --- Comment #36 from Olli Tuominen <otuominen@suse.com> --- I check with lsof dm-0 but it didn't show anything. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c37 --- Comment #37 from Daniel Molkentin <daniel.molkentin@suse.com> --- Can you prefix the command with "strace -f" and attach the output (goes to stderr by default)? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c38 --- Comment #38 from Franck Bui <fbui@suse.com> --- (In reply to Daniel Molkentin from comment #37)
Can you prefix the command with "strace -f" and attach the output (goes to stderr by default)?
I think you should explain how to embed strace in the initrd as it's not really obvious. Also if a (shutdown) hook fails, couldn't dracut emit a warning which includes the name of the hook or the relevant module ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c39 --- Comment #39 from Olli Tuominen <otuominen@suse.com> --- Yes, I can find the strace from /oldroot However it is missing the shared library links to the program so it cannot be executed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c40 --- Comment #40 from Thomas Blume <thomas.blume@suse.com> --- (In reply to Olli Tuominen from comment #36)
I check with lsof dm-0 but it didn't show anything.
Might be good to get the status of the lv, can you please edit: /usr/lib/dracut/modules.d/90dm/dm-shutdown.sh and just before the row: dmsetup -v --noudevsync remove "$devname" || return $? put: dmsetup info -v "$devname" ? Afterwards please recreate the initrd (you might want to backup the old one before) and reproduce the issue. The console output should show the status of the lv, just before removal. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c41 --- Comment #41 from Olli Tuominen <otuominen@suse.com> --- (In reply to Thomas Blume from comment #40)
put:
dmsetup info -v "$devname"
? Afterwards please recreate the initrd (you might want to backup the old one before) and reproduce the issue. The console output should show the status of the lv, just before removal.
is it possible to setup brake point that I could take a screenshot or such? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c42 --- Comment #42 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740630 --> http://bugzilla.opensuse.org/attachment.cgi?id=740630&action=edit reply for C#41 dmsetup info -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c43 Thomas Blume <thomas.blume@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thomas.blume@suse.com Flags| |needinfo?(daniel.molkentin@ | |suse.com) --- Comment #43 from Thomas Blume <thomas.blume@suse.com> --- (In reply to Olli Tuominen from comment #42)
Created attachment 740630 [details] reply for C#41
dmsetup info
Hm: Open count: 1 State: ACTIVE Apparently this is an active logical volume. I'm not sure whether is the proper way to remove the dm table for an lv without notifying lvm. Daniel, do you know why upstream didn't just do a lvchange -an? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c44 --- Comment #44 from Franck Bui <fbui@suse.com> --- Olli can you try to get the debug shell at the "shutdown" phase and show the output of the following command: - cat /proc/mounts - umount /oldroot Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c45 --- Comment #45 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740651 --> http://bugzilla.opensuse.org/attachment.cgi?id=740651&action=edit screenshot of cat /proc/mounts -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c46 --- Comment #46 from Olli Tuominen <otuominen@suse.com> --- Once I unmounted that /oldroot I was able to execute "dmsetup -v --noudevsync remove system-root" command It seems to be somekind of snapshot of the root fs? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c47 --- Comment #47 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #45)
Created attachment 740651 [details] screenshot of cat /proc/mounts
Thanks Olli but you ran the command when you break at the "pre-shutdown" phase, see the shell prompt which is "pre-shutdown:/#" I was interested to run the commands at the "shutdown" phase/step. You normally should break there once you exited from the "pre-shutdown" debug shell since you normmally did: # echo "rd.debug rd.break=pre-shutdown rd.break=shutdown" > /run/initramfs/etc/cmdline.d/debug.conf as indicated in comment #14. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c48 --- Comment #48 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #46)
Once I unmounted that /oldroot I was able to execute "dmsetup -v --noudevsync remove system-root" command
It seems to be somekind of snapshot of the root fs?
Huh ? you were able to umount /oldroot yourself without any error ? That would mean that dracut skips the unmount command entirely for some reasons in your case. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c49 --- Comment #49 from Olli Tuominen <otuominen@suse.com> --- (In reply to Franck Bui from comment #48)
Huh ? you were able to umount /oldroot yourself without any error ?
That is true.
That would mean that dracut skips the unmount command entirely for some reasons in your case.
Can it be timing issue? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c50 --- Comment #50 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #49)
Can it be timing issue?
I don't think so as everything is executed sequentially during the shutdown process of dracut. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c51 --- Comment #51 from Franck Bui <fbui@suse.com> --- Olli, 1. Could you edit /usr/lib/dracut/modules.d/99shutdown/shutdown.sh and add the 2 following lines: set -x exec 2>/dev/kmsg at line number 54. 2. Then recreate the initrd by running "mkinitrd". 3. Follow instructions from comment #14 to break at the "pre-shutdown" and at the "shutdown" steps of the dracut shutdown process 4. You should get a shell prompt at the "pre-shutdown" step first. Please skip it by pressing <Ctrl>-d. You should break at the "shutdown" step now (check that with the shell prompt which includes the current step name). 5. At the *shutdown* step. The debug info should have been all redirected in dmesg. At this point /oldroot should still be mounted since it's the bug. Check that by making sure that the content of /oldroot is not empty. 6. Remount /oldroot read-write: "mount -oremount,rw /oldroot" 7. Save the content of dmesg: "dmesg >/oldroot/dracut-debug.log" 8. umount /oldroot 9. exit from the shutdown step: <Ctrl>-d 10. reboot 11. attach the content of the file found at /dracut-debug.log Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c52 --- Comment #52 from Olli Tuominen <otuominen@suse.com> --- Just to verify that my 54 line starts with _cnt=0 and before it I'll put set -x exec 2>/dev/kmsg ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c53 --- Comment #53 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #52)
Just to verify that my 54 line starts with _cnt=0
and before it I'll put set -x exec 2>/dev/kmsg ?
Yes. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c54 --- Comment #54 from Olli Tuominen <otuominen@suse.com> --- So today came the dracut patch - and it seems to fix it (something). At least I did just reboot and I didn't see the message(s) anymore. The /oldroot is mounted on <pre-shutdown> stage but when I <Ctrl>-d to <shutdown> stage it has disappeared. I copied <pre-shutdown> dmesg to /oldroot/tmp/ but I cannot find it from the /tmp/ now. Is it actually a snapshot? So I think I'll test boot couple of times and if Neil Rickert hasn't encounter issues anymore we can close this. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c55 --- Comment #55 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #54)
So today came the dracut patch - and it seems to fix it (something).
There's no actual patch/fix, but only 2 commands added to the shutdown script to enable debug logs...
At least I did just reboot and I didn't see the message(s) anymore.
Of course since stderr has been redirected to /dev/kmsg.
The /oldroot is mounted on <pre-shutdown> stage but when I <Ctrl>-d to <shutdown> stage it has disappeared.
I copied <pre-shutdown> dmesg to /oldroot/tmp/ but I cannot find it from the /tmp/ now. Is it actually a snapshot?
You were asked to copy the output of dmesg in /oldroot, not in /oldroot/tmp... Can you please follow the instructions and provide the output of dmesg ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c56 --- Comment #56 from Olli Tuominen <otuominen@suse.com> --- (In reply to Franck Bui from comment #55)
The /oldroot is mounted on <pre-shutdown> stage but when I <Ctrl>-d to <shutdown> stage it has disappeared.
I copied <pre-shutdown> dmesg to /oldroot/tmp/ but I cannot find it from the /tmp/ now. Is it actually a snapshot?
You were asked to copy the output of dmesg in /oldroot, not in /oldroot/tmp...
Can you please follow the instructions and provide the output of dmesg ?
Can you provide instructions how to do so as in shutdown stage there is no more /oldroot I can only do it in pre-shutdown when /oldroot is still mounted. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c57 --- Comment #57 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #56)
Can you provide instructions how to do so as in shutdown stage there is no more /oldroot
I can only do it in pre-shutdown when /oldroot is still mounted.
Then the assumption of /oldroot being still mounted was wrong. Please at the *shutdown* stage, issue the following command: - cat /proc/mounts - dmsetup info -v system-root Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c58 --- Comment #58 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740748 --> http://bugzilla.opensuse.org/attachment.cgi?id=740748&action=edit pre-shutdown stage dracut debug log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c59 --- Comment #59 from Olli Tuominen <otuominen@suse.com> --- (In reply to Franck Bui from comment #57)
Please at the *shutdown* stage, issue the following command:
- cat /proc/mounts
missing the /oldroot
- dmsetup info -v system-root
Device does not exist -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c60 --- Comment #60 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #59)
(In reply to Franck Bui from comment #57)
Please at the *shutdown* stage, issue the following command:
- cat /proc/mounts
missing the /oldroot
- dmsetup info -v system-root
Device does not exist
I'm puzzled... According to your comment #32, "dmsetup remove" is supposed to the failing command. And this command is executed by lib/dracut/hooks/shutdown/25-dm-shutdown.sh. In its turn this script is supposed to be called between "pre-shutdown" and "shutdown" by /shutdown. Can you comment the changes in /usr/lib/dracut/modules.d/99shutdown/shutdown.sh requested in comment #51, recreate the initrd and retry ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c61 --- Comment #61 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- Responding to #54
So I think I'll test boot couple of times and if Neil Rickert hasn't encounter >issues anymore we can close this.
I'm out of town at present, so not easily able to test. Feel free to close the bug without my feedback, if you believe you have it resolved. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c62 --- Comment #62 from Olli Tuominen <otuominen@suse.com> --- (In reply to Franck Bui from comment #60)
I'm puzzled...
According to your comment #32, "dmsetup remove" is supposed to the failing command. And this command is executed by lib/dracut/hooks/shutdown/25-dm-shutdown.sh.
Yep, I did the change to C#29 (included sleep so got that message out)
In its turn this script is supposed to be called between "pre-shutdown" and "shutdown" by /shutdown.
Can you comment the changes in /usr/lib/dracut/modules.d/99shutdown/shutdown.sh requested in comment #51, recreate the initrd and retry ?
I'll attach two pic which systemd-shutdown fails to unmount but /shutdown is able to do so. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c63 --- Comment #63 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740847 --> http://bugzilla.opensuse.org/attachment.cgi?id=740847&action=edit dmesg|less systemd-shutdown fail part -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c64 --- Comment #64 from Olli Tuominen <otuominen@suse.com> --- Created attachment 740848 --> http://bugzilla.opensuse.org/attachment.cgi?id=740848&action=edit dmesg shutdown -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c65 --- Comment #65 from Olli Tuominen <otuominen@suse.com> --- Of course there is "killing all remain processes" between systemd-shutdown | shutdown: can this release lock to unmount system-root? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c67 Olli Tuominen <otuominen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(otuominen@suse.co | |m) | --- Comment #67 from Olli Tuominen <otuominen@suse.com> --- So I'm little bit lost. In Comment 27/29 we figured out that /usr/lib/dracut/modules.d/90dm/dm-shutdown.sh causes the messages, right? As the set -x and sleep reveal that it was the case. In pre-shutdown the mount is still there and in shutdown it's not. And if I manually try unmount /oldroot (in pre-shutdown) it works but not with the "dmsetup -v --noudevsync remove system-root" (as it's active?). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c69 --- Comment #69 from Olli Tuominen <otuominen@suse.com> --- Created attachment 741017 --> http://bugzilla.opensuse.org/attachment.cgi?id=741017&action=edit reply for comment #67 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c70 --- Comment #70 from Olli Tuominen <otuominen@suse.com> --- Or actually to comment #68 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c71 --- Comment #71 from Franck Bui <fbui@suse.com> --- (In reply to Olli Tuominen from comment #65)
Of course there is "killing all remain processes" between systemd-shutdown | shutdown: can this release lock to unmount system-root?
That could be indeed a possibility... Ok last try: - please create the following script:
# cat foo.sh #!/bin/bash
for p in /proc/[0-9]*; do for l in $(ls -l $p/ $p/fd 2>/dev/null); do case $l in *$1*) printf "%s: %s\n" $(< $p/comm) $(< $p/cmdline) esac done done
- make it executable : chmod +x foo.sh - include it in the initramfs: "mkinitrd --install $(pwd)/foo.sh" (make sure to use an absolute path with --install otherwise dracut will silently ignore the option :-/) - make sure the script has been included : "lsinitrd | grep foo" - break in the *pre-shutdown* step - execute the script: "/root/foo.sh /oldroot" (assuming that the script was initially created in /root - please post the result of the script (if any) Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c72 --- Comment #72 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- Just a note. After recent Tumbleweed updates, I am no longer seeing those "Command failed" messages. However, I am now sometimes getting messages: remove ioctl for seagate1-root1 failed device or resource busy That's approximate wording. The messages go past too fast to read them clearly. I'll note that this is evidently referring to the logical volume for the root file system (which is part of an encrypted LVM). I'll also note that if I check after the shutdown has completed, that file system seems to be clean. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c73 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(otuominen@suse.co | |m) --- Comment #73 from Franck Bui <fbui@suse.com> --- Let's focus on the current issue. @Olli, could you test the procedure given in comment #71 without updating your system for now ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c74 Olli Tuominen <otuominen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(otuominen@suse.co | |m) | --- Comment #74 from Olli Tuominen <otuominen@suse.com> --- (In reply to Franck Bui from comment #73)
@Olli, could you test the procedure given in comment #71 without updating your system for now ?
Nope. It didn't print anything. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c75 --- Comment #75 from Olli Tuominen <otuominen@suse.com> --- Created attachment 741526 --> http://bugzilla.opensuse.org/attachment.cgi?id=741526&action=edit screenshot -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c89 --- Comment #89 from Olli Tuominen <otuominen@suse.com> --- Created attachment 742990 --> http://bugzilla.opensuse.org/attachment.cgi?id=742990&action=edit dmesg when issue happens -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c90 --- Comment #90 from Olli Tuominen <otuominen@suse.com> --- Created attachment 742994 --> http://bugzilla.opensuse.org/attachment.cgi?id=742994&action=edit dmesg.v4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c91 --- Comment #91 from Olli Tuominen <otuominen@suse.com> --- Created attachment 743004 --> http://bugzilla.opensuse.org/attachment.cgi?id=743004&action=edit dmesg v5 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c92 --- Comment #92 from Olli Tuominen <otuominen@suse.com> --- Created attachment 743064 --> http://bugzilla.opensuse.org/attachment.cgi?id=743064&action=edit dmesg with v6 shutdown.sh -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c93 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|systemd-maintainers@suse.de |daniel.molkentin@suse.com --- Comment #93 from Franck Bui <fbui@suse.com> --- Ok I think we made some progress here and thanks to Olli for all the feedback and testing he provided so far. So here is what's happening from my understanding: During shutdown, systemd stops all services and kills all remaining processes which are still alive (systemd killing spree). However some processes are excluded from the killing spree: all processes whose first character of the zeroth command line argument is '@'. And plymouth is one of those since it still wants to run after dracut takes over. Once dracut becomes PID1, it kills all remaining processes that still references /oldroot (the path where the rootfs is now mounted RO) in order to umount it definitively. Plymouth is the process that still holds reference to /oldroot at that point and therefore is killed by dracut. And I think this is where the problem lives: dracut doesn't wait for plymouth to exit. Instead it sends the KILL signal (done by "killall_proc_mountpoint /oldroot") and then right after tries to umount /oldroot (done by umount_a()). But in this case, plymouth still exists and the umount fails. Another strange part is the way dracut tries to umount /oldroot in a loop: _cnt=0 while [ $_cnt -le 40 ]; do umount_a 2>/dev/null || break _cnt=$(($_cnt+1)) done [ $_cnt -ge 40 ] && umount_a unlike its name suggests, "umount_a" only unmounts /oldroot. If umount_a() succeeds, dracut will continue to umount /oldroot even if the exit status suggests that /oldroot was unmounted and there's no point to continue. OTOH if umount_a() fails then dracut won't do any other attempts and will break the loop. Note also that all errors are hidden since stderr of umount_a() is redirected to /dev/null. Anyways this hopefully shows that the issue lives in dracut so I'm reassigning this bug to Daniel. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 http://bugzilla.opensuse.org/show_bug.cgi?id=1055641#c100 --- Comment #100 from Neil Rickert <nwr10cst-oslnx@yahoo.com> --- Responding to comments #98 and #99 Yes, I am seeing that on Tumbleweed -- two different computers. However, I'm pretty sure that's actually a different bug. It probably needs a new bugzilla report. I have been seeing this for several months. I have been trying, without success, to reproduce in a virtual machine under KVM. It is looking as if the virtualization does something that prevents this bug from happening. I suggest you start a new bug report, and add a note to this bug listing the new one. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1055641 Michiel Janssens <michiel@nexigon.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michiel@nexigon.net -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com