From 28f44d2e1d54da990cf203d2965431bc12a5d008 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Fri, 22 Aug 2025 15:50:28 -0500 Subject: [PATCH] Disable emerg-shutdown and ensure-shutdown on Qubes OS --- usr/lib/systemd/system/emerg-shutdown.service | 1 + usr/lib/systemd/system/ensure-shutdown-trigger.service | 1 + usr/lib/systemd/system/ensure-shutdown.service | 1 + 3 files changed, 3 insertions(+) diff --git a/usr/lib/systemd/system/emerg-shutdown.service b/usr/lib/systemd/system/emerg-shutdown.service index fa738ab..43d594d 100644 --- a/usr/lib/systemd/system/emerg-shutdown.service +++ b/usr/lib/systemd/system/emerg-shutdown.service @@ -10,6 +10,7 @@ Requires=systemd-udevd.service After=systemd-udevd.service Requires=local-fs.target After=local-fs.target +ConditionPathExists=!/usr/share/qubes/marker-vm [Service] Type=notify diff --git a/usr/lib/systemd/system/ensure-shutdown-trigger.service b/usr/lib/systemd/system/ensure-shutdown-trigger.service index 0945e43..593f08d 100644 --- a/usr/lib/systemd/system/ensure-shutdown-trigger.service +++ b/usr/lib/systemd/system/ensure-shutdown-trigger.service @@ -7,6 +7,7 @@ [Unit] Description=Forcibly shut down the system if normal shutdown gets stuck (alternate trigger unit) Documentation=https://github.com/Kicksecure/security-misc +ConditionPathExists=!/usr/share/qubes/marker-vm [Service] Type=oneshot diff --git a/usr/lib/systemd/system/ensure-shutdown.service b/usr/lib/systemd/system/ensure-shutdown.service index 8e4c5b6..ad124f5 100644 --- a/usr/lib/systemd/system/ensure-shutdown.service +++ b/usr/lib/systemd/system/ensure-shutdown.service @@ -13,6 +13,7 @@ Requires=systemd-udevd.service After=systemd-udevd.service Wants=emerg-shutdown.service After=emerg-shutdown.service +ConditionPathExists=!/usr/share/qubes/marker-vm [Service] Type=oneshot