You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/ubuntu/includes.chroot.minimal.sta.../usr/lib/systemd/system/udisks2-inhibit.service

20 lines
541 B

[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