[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH mkinitrd 5.4 fips] Fix kernel integrity check with cciss (#505108)
- From: Hans de Goede <hdegoede redhat com>
- To: Peter Jones <pjones redhat com>
- Cc: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: [PATCH mkinitrd 5.4 fips] Fix kernel integrity check with cciss (#505108)
- Date: Tue, 16 Jun 2009 19:52:18 +0200
diff -up mkinitrd-5.1.19.6/mkinitrd~ mkinitrd-5.1.19.6/mkinitrd
--- mkinitrd-5.1.19.6/mkinitrd~ 2009-06-12 14:30:37.000000000 +0200
+++ mkinitrd-5.1.19.6/mkinitrd 2009-06-12 14:35:51.000000000 +0200
@@ -1193,9 +1193,19 @@ if [ "$withfips" -eq 1 ]; then
if [[ "$bootdev" =~ ^(LABEL=|UUID=) ]]; then
devname=$(resolve_device_name $bootdev)
- findstoragedriver ${devname##/dev/}
else
- findstoragedriver ${bootdev##/dev/}
+ devname=$bootdev
+ fi
+ devname=${devname##/dev/}
+
+ # cciss is *very* special not only does its devicename contain a / which
+ # must be translated to a ! in sysfs, doing the translation is not enough
+ # as cciss' /sys/block entries lack a device symlink (great guys, really
+ # great!) so just hardcode it
+ if [[ "$devname" =~ "^cciss/" ]]; then
+ findmodule cciss
+ else
+ findstoragedriver $devname
fi
BOOTMODULES="$MODULES"
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]