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/mgalive-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/mgalive-genrules.sh')
-rwxr-xr-x | files/90mgalive/mgalive-genrules.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/files/90mgalive/mgalive-genrules.sh b/files/90mgalive/mgalive-genrules.sh new file mode 100755 index 0000000..afbddd3 --- /dev/null +++ b/files/90mgalive/mgalive-genrules.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh +case "$root" in + live:/dev/*) + { + printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/mgalive-root $env{DEVNAME}"\n' \ + ${root#live:/dev/} + printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/mgalive-root $env{DEVNAME}"\n' \ + ${root#live:/dev/} + } >> /etc/udev/rules.d/99-mgalive.rules + wait_for_dev "${root#live:}" + ;; + live:*) + if [ -f "${root#live:}" ]; then + /sbin/initqueue --settled --onetime --unique /sbin/mgalive-root "${root#live:}" + fi + ;; +esac |