summaryrefslogtreecommitdiffstats
path: root/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmodules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh b/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh
new file mode 100755
index 0000000..a5810f7
--- /dev/null
+++ b/modules.d/90dmsquash-live/dmsquash-liveiso-genrules.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "${root%%:*}" = "liveiso" ]; then
+ {
+ # shellcheck disable=SC2016
+ printf 'KERNEL=="loop-control", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root `/sbin/losetup -f --show %s`"\n' \
+ "${root#liveiso:}"
+ } >> /etc/udev/rules.d/99-liveiso-mount.rules
+fi