diff options
| author | Daniel Baumann <daniel@debian.org> | 2011-08-04 21:11:34 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-08-04 21:12:58 +0200 |
| commit | a5a55ce3588e76557d2550405862709fa542a6a3 (patch) | |
| tree | 76b39e334228dfe1d1b9870b5a264817d2144a1d /scripts | |
| parent | 02ee41ffaff9e3f3b9caf1a2219bb183aa4ec4ba (diff) | |
| download | live-boot-a5a55ce3588e76557d2550405862709fa542a6a3.tar.gz live-boot-a5a55ce3588e76557d2550405862709fa542a6a3.zip | |
Applying reformated patch from Ulrich Dangel <mru@grml.org> to add support for lvm and md devices.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live index d5ffc6e..82f5413 100755 --- a/scripts/live +++ b/scripts/live @@ -1612,6 +1612,35 @@ check_dev () umount $mountpoint fi fi + + IFS="," + for device in ${devname} + do + case "$device" in + *mapper*) + # Adding lvm support + if [ -x /scripts/local-top/lvm2 ] + then + ROOT="$device" resume="" /scripts/local-top/lvm2 + fi + ;; + + /dev/md*) + # Adding raid support + if [ -x /scripts/local-top/mdadm ] + then + cp /conf/conf.d/md /conf/conf.d/md.orig + echo "MD_DEVS=$device " >> /conf/conf.d/md + /scripts/local-top/mdadm + mv /conf/conf.d/md.orig /conf/conf.d/md + fi + ;; + esac + done + unset IFS + + [ -n "$device" ] && devname="$device" + [ -e "$devname" ] || continue if [ -n "${LIVE_MEDIA_OFFSET}" ] |
