]> git.ipfire.org Git - thirdparty/dracut.git/commit
squash: unsquash the root image instead of mounting it on shutdown
authorKairui Song <kasong@redhat.com>
Fri, 9 Nov 2018 02:48:28 +0000 (10:48 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 12 Nov 2018 08:04:14 +0000 (09:04 +0100)
commita60af534132828fd46fa017291f7ed7cfeab1dc3
tree644da9dc2f1d814f70b5603fbd79cedc175d93da
parentf18d069d4664c148df8563139b358806ecfe6799
squash: unsquash the root image instead of mounting it on shutdown

When building squash image, squash module forgot to install the new
shutdown.sh, and the shutdown hooks are always skipped on ordinary
shutdown if squash module is enabled.

The new shutdown.sh will remount the squash image and then everything
will just work, but currently re-mounting the squash image on shutdown
may have selinux problem and make the system hang, and there is no
easy way to fix it.

So skip fixing the shutdown.sh not being install problem, instead
just drop the new shutdown.sh, and unsquash the image on ordinary
shutdown, which is safer and should always work.

Signed-off-by: Kairui Song <kasong@redhat.com>
dracut-initramfs-restore.sh
dracut.sh
modules.d/99squash/shutdown.sh [deleted file]