Bug 5184 - When halting umounting LVM (encrypted?) is broken
Summary: When halting umounting LVM (encrypted?) is broken
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 5159
Blocks: 2120
  Show dependency treegraph
 
Reported: 2012-04-01 22:34 CEST by Kamil Rytarowski
Modified: 2012-04-09 21:22 CEST (History)
1 user (show)

See Also:
Source RPM: systemd
CVE:
Status comment:


Attachments
dm errors (577.36 KB, image/jpeg)
2012-04-01 22:34 CEST, Kamil Rytarowski
Details

Description Kamil Rytarowski 2012-04-01 22:34:01 CEST
+++ This bug was initially created as a clone of Bug #5159 +++

Description of problem:
Hi!

I'm doing minimal installation (without X Window), and I got when halting error that are visible on the attachement

My partitions
sda1 /boot
sda2 encrypted LVM
* /
* swap
* /home


Steps to Reproduce:
1. network installation (nonfree iso)
2. see errors at halt time
Comment 1 Kamil Rytarowski 2012-04-01 22:34:29 CEST
Created attachment 1893 [details]
dm errors
Comment 2 Colin Guthrie 2012-04-09 13:44:33 CEST
Reproduced here in my VM.

Passing acpi=off on the command line makes the messages vaguely readable too :D

Status: NEW => ASSIGNED

Colin Guthrie 2012-04-09 13:44:39 CEST

Assignee: bugsquad => mageia

Comment 3 Colin Guthrie 2012-04-09 14:54:14 CEST
Should be fixed in latest dracut. Systemd will still output these messages, but it is impossible for systemd to do more here anyway (it could in theory be a little cleverer about how to tear down DM's such that it won't even try to tear down the DM if the rootfs is somewhere within it, but that's a mostly cosmetic issue really).

The difference now is that dracut will take over again, and do it's own tidy up of stuff.

Sadly after all this, it still seems that dracut doesn't actually shutdown the LVM or crypt anyway (I cannot see any shutdown hooks to call vgchange -an) but this is an upstream problem. We can't realistically do much more than this (other than by patching dracut, but I'm sure this is on the roadmap anyway and this is already better than we were able to do before with sysvinit and mkinitrd so I thing that's an improvement.

Therefore, closing.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 4 Kamil Rytarowski 2012-04-09 21:22:35 CEST
(In reply to comment #3)
> Should be fixed in latest dracut. Systemd will still output these messages, but
> it is impossible for systemd to do more here anyway (it could in theory be a
> little cleverer about how to tear down DM's such that it won't even try to tear
> down the DM if the rootfs is somewhere within it, but that's a mostly cosmetic
> issue really).
> 
> The difference now is that dracut will take over again, and do it's own tidy up
> of stuff.
> 
> Sadly after all this, it still seems that dracut doesn't actually shutdown the
> LVM or crypt anyway (I cannot see any shutdown hooks to call vgchange -an) but
> this is an upstream problem. We can't realistically do much more than this
> (other than by patching dracut, but I'm sure this is on the roadmap anyway and
> this is already better than we were able to do before with sysvinit and
> mkinitrd so I thing that's an improvement.
> 
> Therefore, closing.

Thank you for fixing it. Please report it upstream.

Note You need to log in before you can comment on or make changes to this bug.