diff options
author | Thomas Backlund <tmb@mageia.org> | 2012-03-11 23:48:04 +0000 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2012-03-11 23:48:04 +0000 |
commit | fb2e8cc81820b9d3ec327d46f85922cf56f493a4 (patch) | |
tree | fb7b210bd6157eefbe39eeaf08be6c135ca69b46 /files/90mgalive/mgaliveiso-genrules.sh | |
parent | a66f612ddde65235b713d21be6c28652f2eb5f23 (diff) | |
download | draklive-config-fb2e8cc81820b9d3ec327d46f85922cf56f493a4.tar draklive-config-fb2e8cc81820b9d3ec327d46f85922cf56f493a4.tar.gz draklive-config-fb2e8cc81820b9d3ec327d46f85922cf56f493a4.tar.bz2 draklive-config-fb2e8cc81820b9d3ec327d46f85922cf56f493a4.tar.xz draklive-config-fb2e8cc81820b9d3ec327d46f85922cf56f493a4.zip |
add mgalive dracut module based on dmsquash-live module (needs more cleaning)
Diffstat (limited to 'files/90mgalive/mgaliveiso-genrules.sh')
-rwxr-xr-x | files/90mgalive/mgaliveiso-genrules.sh | 9 |
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 |