Mailinglist Archive: opensuse-bugs (7528 mails)

< Previous Next >
[Bug 413920] New: Multiple bugs in mkinitrd (network, iscsi)
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 1 Aug 2008 06:48:48 -0600 (MDT)
  • Message-id: <bug-413920-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=413920

User mendel@xxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=413920#c413199

Summary: Multiple bugs in mkinitrd (network, iscsi)
Product: openSUSE 11.0
Version: Final
Platform: Other
OS/Version: openSUSE 11.0
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Booting
AssignedTo: jsrain@xxxxxxxxxx
ReportedBy: mendel@xxxxxxxxx
QAContact: jsrain@xxxxxxxxxx
Found By: Other


There are several bugs in mkinitrd. Patch to fix is attached.

Just for information the setup is as following:
iscsi connections:
iscsi-target1 (on iscsi-initiator hostA)
iscsi-target2 (on iscsi-initiator hostB)
Both of there iscsi targets contain a partition table
which described the whole 'disk'space as linux raid (fd).
Those partitions reside within /dev/md0 (a raid1).
/dev/md0 is the root partition.

To setup the iscsi connection I need DHCP for networking.

The bugs:
1) scripts/setup-iscsi.sh doesn't look to $blockdev but
only looks for $rootdev. This way mkinitrd can't
find out that /dev/sda and /dev/sdb are needed for booting
2) scripts/boot-iscsi.sh has a for statement where it looks
how much iscsi-sessions there are (and some other in case
someone specifies them an the commandline). This
statement is missing a $.
3) scripts/boot-network.sh has a bug. Already described in
bugreport #413199


The patch:

diff -ur mkinitrd-2.2.org/scripts/boot-iscsi.sh
mkinitrd-2.2/scripts/boot-iscsi.sh
--- mkinitrd-2.2.org/scripts/boot-iscsi.sh 2008-05-23 09:05:38.000000000
+0200
+++ mkinitrd-2.2/scripts/boot-iscsi.sh 2008-08-01 14:37:52.000000000 +0200
@@ -97,7 +97,7 @@
usleep 5000000

# loop through all stored iscsi sessions, the command line and iBFT settings
-for session in iscsi_sessions "" iBFT; do
+for $session in iscsi_sessions "" iBFT; do
# get the current config
iscsiserver=$(eval echo \$TargetAddress$session)
iscsiport=$(eval echo \$TargetPort$session)
diff -ur mkinitrd-2.2.org/scripts/boot-network.sh
mkinitrd-2.2/scripts/boot-network.sh
--- mkinitrd-2.2.org/scripts/boot-network.sh 2008-05-23 09:05:38.000000000
+0200
+++ mkinitrd-2.2/scripts/boot-network.sh 2008-08-01 14:37:20.000000000
+0200
@@ -61,7 +61,7 @@
fi

# dhcp based ip config
-if [ "$nettype" = "static" ]; then
+if [ "$nettype" = "dhcp" ]; then
# run dhcp
if [ "$interface" != "off" ]; then
# ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up
diff -ur mkinitrd-2.2.org/scripts/setup-iscsi.sh
mkinitrd-2.2/scripts/setup-iscsi.sh
--- mkinitrd-2.2.org/scripts/setup-iscsi.sh 2008-05-23 09:05:38.000000000
+0200
+++ mkinitrd-2.2/scripts/setup-iscsi.sh 2008-08-01 14:37:36.000000000 +0200
@@ -6,7 +6,7 @@
local devname=$1
local sysfs_path

- sysfs_path=$(/sbin/udevadm info -q path -n $rootdev 2> /dev/null)
+ sysfs_path=$(/sbin/udevadm info -q path -n $devname 2> /dev/null)
if [ -z "$sysfs_path" ] || [ ! -d /sys$sysfs_path ] ; then
return;
fi


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >