diff options
author | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-12-08 08:14:44 +0000 |
---|---|---|
committer | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-12-08 08:14:44 +0000 |
commit | 17382811bf18aca176e8b103608fd2b7514c6ac8 (patch) | |
tree | 16b916d1f880009a2f763e0a730a6e97a5dccc95 /debian/initramfs | |
parent | 9c4f51f914a2d39107c30e6821cd9fabe103ba69 (diff) |
* 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.
Diffstat (limited to 'debian/initramfs')
-rw-r--r-- | debian/initramfs/hook | 5 |
1 files changed, 5 insertions, 0 deletions
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 |