From dd198bf0b47b5e93e1de57399ce3a4fc021d6601 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 13 Sep 2019 23:44:19 +0200 Subject: [PATCH] systemd: prevent unmounting flash via umount.target add drop-in to set DefaultDependencies=no on /flash mount. This removes the Conflicts=umount.target and /flash won't be unmounted by systemd. systemd-shutdown will then later remount it ro and try to unmount it. Signed-off-by: Matthias Reichl --- .../sysutils/systemd/system.d/flash.mount.d/dependencies.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 packages/sysutils/systemd/system.d/flash.mount.d/dependencies.conf diff --git a/packages/sysutils/systemd/system.d/flash.mount.d/dependencies.conf b/packages/sysutils/systemd/system.d/flash.mount.d/dependencies.conf new file mode 100644 index 0000000000..911bbfa0ce --- /dev/null +++ b/packages/sysutils/systemd/system.d/flash.mount.d/dependencies.conf @@ -0,0 +1,2 @@ +[Unit] +DefaultDependencies=no