Bug 81922 - booting may be failed if the usb storage is connected at installation time.
booting may be failed if the usb storage is connected at installation time.
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: anaconda (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Michael Fulbright
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-15 02:14 EST by Shinya Narahara
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-15 12:06:43 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 Shinya Narahara 2003-01-15 02:14:32 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [ja] (WinNT; U)

Description of problem:
The system which is installed by using kickstart
file on usb-floppy, may fail to boot
when the usb-floppy device is disconnected from the system.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.install with kickstart, from usb-floppy
2.disconnect usb-floppy
3.reboot


Actual Results:  kernel panic: can't find root fs.

Expected Results:  boot normally.

Additional info:

This occures only on system which has root fs on scsi device.
The cause is an appreciation order of anaconda and mkinitrd.
We believe the removable device(like usb-floppy, usb-hdd)
must be appreciated at last time, but current anaconda do
at first.

The system which has fixed scsi disk and usb-floppy
connected, shows disks as:
    /dev/sda = usb-floppy
    /dev/sdb = fixed scsi disk

It should be:
    /dev/sda = fixed scsi disk
    /dev/sdb = usb-floppy
because removing usb-floppy from system, doesn't have
any effects.

To fix this, we must make 2 patches for anaconda and mkinitrd.
The anaconda one is below:

--- anaconda-7.2/loader/loader.c.org	Tue Jan  7 04:54:54 2003
+++ anaconda-7.2/loader/loader.c	Tue Jan  7 04:57:50 2003
@@ -2434,10 +2434,10 @@
 
     mlLoadModule("hid", NULL, modLoaded, modDeps, NULL, modInfo, flags);
     mlLoadModule("keybdev", NULL, modLoaded, modDeps, NULL, modInfo, flags);
-
+/*
     if (FL_NOUSBSTORAGE(flags)) return 0;
     mlLoadModule("usb-storage", NULL, modLoaded, modDeps, NULL, modInfo, flags);
-
+*/
     return 0;
 }
 
@@ -2719,6 +2719,9 @@
 	busProbe(modInfo, modLoaded, modDeps, probeOnly, &kd, flags);
 	if (probeOnly) exit(0);
     }
+    if (!FL_NOUSBSTORAGE(flags)) {
+        mlLoadModule("usb-storage", NULL, modLoaded, modDeps, NULL, modInfo, flags);
+    }
 
     if (FL_KSHD(flags)) {
 	ksFile = "/tmp/ks.cfg";
Comment 1 Michael Fulbright 2003-01-15 12:06:43 EST
This was fixed in 7.3.

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