From 2f4cf8213ccefa51a9d3168f0edcfd125a73028d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 20 Dec 2010 17:28:14 +0100 Subject: [PATCH] Add patch 18_support_mtdblock_as_device_name.dpatch. --- debian/patches/00list | 1 + .../patches/18_support_mtdblock_as_device_name.dpatch | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 debian/patches/18_support_mtdblock_as_device_name.dpatch diff --git a/debian/patches/00list b/debian/patches/00list index 5ecabf2..2317ab7 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -10,3 +10,4 @@ 15_networking_grml.dpatch 16_nodhcp.dpatch 17_fix_usage_of_manual_add_modules.dpatch +18_support_mtdblock_as_device_name.dpatch diff --git a/debian/patches/18_support_mtdblock_as_device_name.dpatch b/debian/patches/18_support_mtdblock_as_device_name.dpatch new file mode 100755 index 0000000..329074c --- /dev/null +++ b/debian/patches/18_support_mtdblock_as_device_name.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 18_support_mtdblock_as_device_name.dpatch by Michael Prokop +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Support /dev/mtdblock0 as valid device name (for memdisk boot). + +--- a/scripts/live ++++ b/scripts/live +@@ -471,6 +471,9 @@ is_nice_device () + elif echo ${sysfs_path} | grep -q "^/block/dm-" + then + return 0 ++ elif echo ${sysfs_path} | grep -q "^/block/mtdblock" ++ then ++ return 0 + fi + + return 1 -- 2.1.4