mkinitrd does not detect linear raid in /etc/raidtab. It is also sensitive to TAB/SPACE in raidtab. The following modification solves these problems, note that mkinitrd contains a tab, so that the bugzilla web interface will probably slightly destroy this diff. --- mkinitrd Wed Jun 21 10:05:21 2000 +++ mkinitrd.mod Wed Jun 21 09:52:43 2000 @@ -210,11 +210,14 @@ if [ -z "$noraid" ]; then # load appropriate raid devices if necessary if grep '^/dev/md' $fstab | grep -v noauto >/dev/null 2>&1 ; then - for number in $(grep '^[ ]*raid-level' /etc/raidtab | + for number in $(grep '^[[:space:]]*raid-level' /etc/raidtab | awk '{print $2}' | LC_ALL=C sort -u) ; do case $number in [0145]) findmodule "" raid$number + ;; + linear) + findmodule "" linear ;; *) echo "raid level $number (in /etc/raidtab) not recognized" >&2 This works well here, people using the linear raid facility have less problems with updating kernels. -psi
*** Bug 11082 has been marked as a duplicate of this bug. ***
fixed (finally!) in mkinitrd 3.3.11 we don't have any linear raid machines around here though, so it hasn't been thoroughly tested -- patch is nearly identical to yours though