summaryrefslogtreecommitdiffstats
path: root/files/90mgalive/mgaliveiso-genrules.sh
diff options
context:
space:
mode:
Diffstat (limited to 'files/90mgalive/mgaliveiso-genrules.sh')
-rwxr-xr-xfiles/90mgalive/mgaliveiso-genrules.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/files/90mgalive/mgaliveiso-genrules.sh b/files/90mgalive/mgaliveiso-genrules.sh
new file mode 100755
index 0000000..946047d
--- /dev/null
+++ b/files/90mgalive/mgaliveiso-genrules.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
+if [ "${root%%:*}" = "liveiso" ]; then
+ {
+ printf 'KERNEL=="loop0", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/mgalive-root `/sbin/losetup -f --show %s`"\n' \
+ ${root#liveiso:}
+ } >> /etc/udev/rules.d/99-mgaliveiso-mount.rules
+fi