From: Kairui Song Date: Thu, 18 Oct 2018 09:05:22 +0000 (+0800) Subject: 99squash: Don't clean up squahfs on isolate X-Git-Tag: 050~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9af0fcdfb2364245b333a123cdb07523855079f;p=thirdparty%2Fdracut.git 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 --- diff --git a/modules.d/99squash/squash-mnt-clear.service b/modules.d/99squash/squash-mnt-clear.service index 8dd17812d..f8d5db46f 100644 --- a/modules.d/99squash/squash-mnt-clear.service +++ b/modules.d/99squash/squash-mnt-clear.service @@ -9,6 +9,7 @@ After=dracut-initqueue.service dracut-pre-pivot.service Before=initrd-cleanup.service ConditionPathExists=/squash/root Conflicts=initrd-switch-root.target +IgnoreOnIsolate=true [Service] Type=oneshot