Bug 12775 - mkinitrd does not detect linear raid
mkinitrd does not detect linear raid
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: mkinitrd (Show other bugs)
6.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Matt Wilson
: FutureFeature
: 11082 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-06-21 04:15 EDT by Per Steinar Iversen
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-02-12 18:37:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Per Steinar Iversen 2000-06-21 04:15:14 EDT
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
Comment 1 Arenas Belon, Carlo Marcelo 2001-02-12 18:37:53 EST
*** Bug 11082 has been marked as a duplicate of this bug. ***
Comment 2 Erik Troan 2002-05-21 18:13:21 EDT
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

Note You need to log in before you can comment on or make changes to this bug.