desktop: move udisks2-inhibit to service (LP: #2063192)

ubuntu-core-desktop-noble
Dan Bungert 9 months ago
parent 58d01c0d05
commit 9946962363

2
debian/changelog vendored

@ -1,6 +1,6 @@
livecd-rootfs (24.04.69) UNRELEASED; urgency=medium livecd-rootfs (24.04.69) UNRELEASED; urgency=medium
* * desktop: move udisks2-inhibit to service (LP: #2063192)
-- Dan Bungert <daniel.bungert@canonical.com> Tue, 23 Apr 2024 08:09:29 -0600 -- Dan Bungert <daniel.bungert@canonical.com> Tue, 23 Apr 2024 08:09:29 -0600

@ -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
Loading…
Cancel
Save