From 17382811bf18aca176e8b103608fd2b7514c6ac8 Mon Sep 17 00:00:00 2001 From: madduck Date: Fri, 8 Dec 2006 08:14:44 +0000 Subject: * Only parse ARRAY lines from configuration file when collecting the array pairs. Thanks to Daniel Dehennin for the bug report and suggested fix (closes: #402106). * Prevent modules from being loaded during initramfs time if no arrays are to be assembled at this stage. --- debian/initramfs/hook | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/initramfs') diff --git a/debian/initramfs/hook b/debian/initramfs/hook index 4a46a844..235296c6 100644 --- a/debian/initramfs/hook +++ b/debian/initramfs/hook @@ -184,6 +184,10 @@ else # obtain dev:level pairs from config file, honouring multiline entries devpairs="$( while read line; do + case "$line" in + (ARRAY*) :;; + (*) continue;; + esac for atom in $line; do case "$atom" in (/dev*) dev=$atom;; @@ -264,6 +268,7 @@ if [ "$INITRDSTART" != none ] && [ -n "$devpairs" ]; then else echo "MD_DEVS=none" >> $DESTCONFIG + echo "MD_MODULES=''" >> $DESTCONFIG info "no MD arrays will be started from the initial ramdisk." >&2 fi -- cgit v1.2.3