Support lvm devices for live-media.
authorUlrich Dangel <mru@grml.org>
Fri, 25 Mar 2011 20:43:28 +0000 (21:43 +0100)
committerUlrich Dangel <mru@grml.org>
Fri, 3 Jun 2011 00:28:18 +0000 (02:28 +0200)
debian/patches/00list
debian/patches/25_support_lvm_for_live-media.dpatch [new file with mode: 0755]

index daa25cc..1ca3eb5 100644 (file)
@@ -10,3 +10,4 @@
 15_networking_grml.dpatch
 16_nodhcp.dpatch
 19_revert_toram_bootoption_to_expected_behaviour.dpatch
+25_support_lvm_for_live-media.dpatch
diff --git a/debian/patches/25_support_lvm_for_live-media.dpatch b/debian/patches/25_support_lvm_for_live-media.dpatch
new file mode 100755 (executable)
index 0000000..250d0aa
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 25_support_lvm_for_live-media.dpatch by  <mru@grml.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Support lvm devices for live-media
+
+@DPATCH@
+
+--- a/scripts/live
++++ b/scripts/live
+@@ -1509,6 +1509,15 @@ check_dev ()
+                       umount $mountpoint
+               fi
+       fi
++
++      case "$devname" in
++              *mapper*)  # add lvm support
++              if [ -x /scripts/local-top/lvm2 ] ; then
++                      ROOT="$devname" resume="" /scripts/local-top/lvm2
++              fi
++              ;;
++      esac
++
+       [ -e "$devname" ] || continue
+       if [ -n "${LIVE_MEDIA_OFFSET}" ]