diff --git a/debian/changelog b/debian/changelog index f9fddd59..4cb4b542 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ livecd-rootfs (24.04.69) UNRELEASED; urgency=medium - * + * desktop: move udisks2-inhibit to service (LP: #2063192) -- Dan Bungert Tue, 23 Apr 2024 08:09:29 -0600 diff --git a/live-build/ubuntu/includes.chroot.minimal.standard.live/usr/lib/systemd/system/graphical.target.wants/udisks2-inhibit.service b/live-build/ubuntu/includes.chroot.minimal.standard.live/usr/lib/systemd/system/graphical.target.wants/udisks2-inhibit.service new file mode 120000 index 00000000..f449efe1 --- /dev/null +++ b/live-build/ubuntu/includes.chroot.minimal.standard.live/usr/lib/systemd/system/graphical.target.wants/udisks2-inhibit.service @@ -0,0 +1 @@ +../udisks2-inhibit.service \ No newline at end of file diff --git a/live-build/ubuntu/includes.chroot.minimal.standard.live/usr/lib/systemd/system/udisks2-inhibit.service b/live-build/ubuntu/includes.chroot.minimal.standard.live/usr/lib/systemd/system/udisks2-inhibit.service new file mode 100644 index 00000000..6a699487 --- /dev/null +++ b/live-build/ubuntu/includes.chroot.minimal.standard.live/usr/lib/systemd/system/udisks2-inhibit.service @@ -0,0 +1,19 @@ +[Unit] +Description=inhibit disk automounting +Before=udisks2.service + +[Service] +Type=oneshot +RemainAfterExit=yes + +ExecStart=mkdir -p /run/udev/rules.d +ExecStart=sh -c "echo 'SUBSYSTEM==\"block\", ENV{UDISKS_IGNORE}=\"1\"' > /run/udev/rules.d/10-udisks-inhibit.rules" +ExecStart=udevadm control --reload +ExecStart=udevadm trigger --subsystem-match=block + +ExecStopPost=rm -f /run/udev/rules.d/10-udisks-inhibit.rules +ExecStopPost=udevadm control --reload +ExecStopPost=udevadm trigger --subsystem-match=block + +[Install] +WantedBy=graphical.target