summaryrefslogtreecommitdiffstats
path: root/modules.d/90mgalive/module-setup.sh
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2013-10-19 19:27:20 +0100
committerJybz <j.biernacki@free.fr>2024-04-20 20:09:28 +0200
commit245782034beafe9db0aee6c27a9d5abd075b64c6 (patch)
treeba7bef380c719a326260ef8e7031940dd0ff444c /modules.d/90mgalive/module-setup.sh
parent8c6f74db3b2a0040bebb59f172aee85e0173a953 (diff)
downloadmageia-dracut-conf-245782034beafe9db0aee6c27a9d5abd075b64c6.tar
mageia-dracut-conf-245782034beafe9db0aee6c27a9d5abd075b64c6.tar.gz
mageia-dracut-conf-245782034beafe9db0aee6c27a9d5abd075b64c6.tar.bz2
mageia-dracut-conf-245782034beafe9db0aee6c27a9d5abd075b64c6.tar.xz
mageia-dracut-conf-245782034beafe9db0aee6c27a9d5abd075b64c6.zip
mgalive: A module to mount Mageia Live media
Updated to work with overlay from 3.19 Signed-off-by: Thomas Backlund <tmb@mageia.org>
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
+}