Skip to content

Commit

Permalink
Applying reformated patch from Ulrich Dangel <mru@grml.org> to add su…
Browse files Browse the repository at this point in the history
…pport for lvm and md devices.
  • Loading branch information
daniel-baumann committed Aug 4, 2011
1 parent 02ee41f commit a5a55ce
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions scripts/live
Expand Up @@ -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}" ]
Expand Down

0 comments on commit a5a55ce

Please sign in to comment.