mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-05 07:41:31 +00:00
desktop: move udisks2-inhibit to service (LP: #2063192)
This commit is contained in:
parent
58d01c0d05
commit
9946962363
2
debian/changelog
vendored
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 @@
|
|||||||
|
../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
|
Loading…
x
Reference in New Issue
Block a user