1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 25_support_lvm_for_live-media.dpatch by <mru@grml.org>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Support lvm and raid devices for live-media
11 @@ -1669,6 +1669,29 @@
17 + for device in ${devname} ; do
19 + *mapper*) # add lvm support
20 + if [ -x /scripts/local-top/lvm2 ] ; then
21 + ROOT="$device" resume="" /scripts/local-top/lvm2
25 + if [ -x /scripts/local-top/mdadm ] ; then
26 + cp /conf/conf.d/md /conf/conf.d/md.orig
27 + echo "MD_DEVS=$device " >> /conf/conf.d/md
28 + /scripts/local-top/mdadm
29 + mv /conf/conf.d/md.orig /conf/conf.d/md
36 + [ -n "$device" ] && devname="$device"
38 [ -e "$devname" ] || continue
40 if [ -n "${LIVE_MEDIA_OFFSET}" ]