[Bug 413920] New: Multiple bugs in mkinitrd (network, iscsi)
https://bugzilla.novell.com/show_bug.cgi?id=413920 User mendel@mobach.nl 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@novell.com ReportedBy: mendel@mobach.nl QAContact: jsrain@novell.com 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.
https://bugzilla.novell.com/show_bug.cgi?id=413920 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@novell.com |hare@novell.com -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=413920 User hare@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413920#c1 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Hannes Reinecke <hare@novell.com> 2008-08-08 07:55:46 MDT --- Thank you. Patches will be included in the next mkinitrd update. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=413920 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hare@novell.com |bwalle@novell.com Status|ASSIGNED |NEW -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=413920 User bwalle@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413920#c2 Bernhard Walle <bwalle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Bernhard Walle <bwalle@novell.com> 2008-12-03 08:49:52 MST --- Setting to FIXED. -- 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.
participants (1)
-
bugzilla_noreply@novell.com