[Merge] ~dbungert/livecd-rootfs:lp-2063192-more-drives into livecd-rootfs:ubuntu/master
Dan Bungert
mp+464842 at code.launchpad.net
Tue Apr 23 15:58:37 UTC 2024
Diff comments:
> 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 0000000..4473287
> --- /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"
I used a different name on purpose to avoid conflicts. When https://github.com/canonical/ubuntu-desktop-provision/pull/703 is landed this problem goes away, but a snap without that would remove the rules file before the service is done.
> +ExecStart=udevadm control --reload
> +ExecStart=udevadm trigger --subsystem-match=block
> +
> +ExecStop=rm -f /run/udev/rules.d/10-udisks-inhibit.rules
> +ExecStop=udevadm control --reload
> +ExecStop=udevadm trigger --subsystem-match=block
> +
> +[Install]
> +WantedBy=graphical.target
--
https://code.launchpad.net/~dbungert/livecd-rootfs/+git/livecd-rootfs/+merge/464842
Your team Ubuntu Core Development Team is subscribed to branch livecd-rootfs:ubuntu/master.
More information about the Ubuntu-reviews
mailing list