]> git.ipfire.org Git - thirdparty/dracut.git/commit
99squash: Don't clean up squahfs on isolate
authorKairui Song <kasong@redhat.com>
Thu, 18 Oct 2018 09:05:22 +0000 (17:05 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 18 Oct 2018 09:55:50 +0000 (11:55 +0200)
commitb9af0fcdfb2364245b333a123cdb07523855079f
tree14c7cb7c90aba4336aea0401258c4392f2f0bab8
parent83cbc06ab91288e2d931b4f36935bfdb79a99b0e
99squash: Don't clean up squahfs on isolate

The only time we need to cleanup squahfs manually is on switch root, to
release resource and memory. We've covered that by setting
"Conflicts=initrd-switch-root.target" for squash cleanup service.
On shutdown systemd will take care of squahfs mounts. But for other
isolate, files in initramfs are most likely still required, so don't
clean up squahfs. For example, kdump's emergency handler will isolate
into its own target, if squahfs is cleaned up it will fail.

Signed-off-by: Kairui Song <kasong@redhat.com>
modules.d/99squash/squash-mnt-clear.service