From df17b4362f38b173eb2d333917757c4c28c11a26 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Fri, 25 Mar 2011 21:43:28 +0100 Subject: [PATCH] Support lvm devices for live-media. --- debian/patches/00list | 1 + .../patches/25_support_lvm_for_live-media.dpatch | 26 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 debian/patches/25_support_lvm_for_live-media.dpatch diff --git a/debian/patches/00list b/debian/patches/00list index daa25cc..1ca3eb5 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -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 index 0000000..250d0aa --- /dev/null +++ b/debian/patches/25_support_lvm_for_live-media.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 25_support_lvm_for_live-media.dpatch by +## +## 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}" ] -- 2.1.4