summaryrefslogtreecommitdiffstats
path: root/modules.d/90mgalive/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/90mgalive/module-setup.sh')
-rwxr-xr-xmodules.d/90mgalive/module-setup.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules.d/90mgalive/module-setup.sh b/modules.d/90mgalive/module-setup.sh
new file mode 100755
index 0000000..99be401
--- /dev/null
+++ b/modules.d/90mgalive/module-setup.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+check() {
+ # a live host-only image doesn't really make a lot of sense
+ [[ $hostonly ]] && return 1
+ return 255
+}
+
+depends() {
+ return 0
+}
+
+installkernel() {
+ instmods squashfs loop overlay
+}
+
+install() {
+ inst_multiple umount dmsetup blkid dd losetup grep blockdev
+ inst_multiple -o eject
+
+ inst_hook cmdline 30 "$moddir/mgalive-parse.sh"
+ inst_hook pre-udev 30 "$moddir/mgalive-genrules.sh"
+ inst "$moddir/mgalive-root.sh" "/sbin/mgalive-root"
+ # should probably just be generally included
+ inst_rules 60-cdrom_id.rules
+}