RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1338759 - unable to shutdown - dracut loop rm: cannot remove /lib/drauct/hooks/shutdown/30-dm-shutdown.sh: Read-only filesystem
Summary: unable to shutdown - dracut loop rm: cannot remove /lib/drauct/hooks/shutdown...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dracut
Version: 7.1
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: dracut-maint
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On: 1178497
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-23 11:59 UTC by Marcel Kolaja
Modified: 2019-12-16 05:49 UTC (History)
35 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: If a mount point resides in /run on shutdown and cannot be unmounted, systemd will mount this mountpoint read-only. This propagates to /run being read-only. Consequence: When the dracut shutdown procedure runs in a /run root to disassemble and unmount the old real root, its /run is read-only. dracut expects a writable /run, though, so it fails on shutdown. Fix: If dracut encounters a read-only /run on shutdown, it remounts it writeable. Result: The dracut shutdown procedure to disassemble and unmount the old real root succeeds.
Clone Of: 1178497
Environment:
Last Closed: 2016-06-23 16:33:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1252 0 normal SHIPPED_LIVE dracut bug fix update 2016-06-23 20:16:54 UTC

Description Marcel Kolaja 2016-05-23 11:59:59 UTC
This bug has been copied from bug #1178497 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 6 Jan Stodola 2016-06-08 12:26:11 UTC
Reproduced with dracut-033-359.el7, verified with dracut-033-360.el7_2.1, system shuts down as expected.

There is one warning message when trying to unmount /run/netns/namespace, which doesn't prevent from shutting down the system, and will be reported as a separate bug:

[   42.401813] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   42.404672] systemd-shutdown[1]: Unmounting file systems.
[   42.406297] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.407469] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.408819] systemd-shutdown[1]: Unmounting /run/netns.
[   42.474532] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.475970] systemd-shutdown[1]: Unmounting /run/netns/namespace.
[   42.477191] systemd-shutdown[1]: Could not unmount /run/netns/namespace: Invalid argument
[   42.478824] systemd-shutdown[1]: Not all file systems unmounted, 1 left.

Moving to VERIFIED.

Comment 7 Jan Stodola 2016-06-08 12:40:47 UTC
The warning message has been reported as bug 1343986.

Comment 9 errata-xmlrpc 2016-06-23 16:33:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1252


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