Had to hack new-kernel script in mkinitrd to boot from USB after updating kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Everybody:

I have a small fleet of external USB hard disks with Fedora and I have
the graduate students boot their windows machines from these external
drives in order to do some actual work (as opposed to playing
Minesweeper).  It is no trouble to install these systems on external
USB since the improvements in F7 for that purpose, but when the kernel
is updated, the mkinitrd stuff does not end up getting all of the
right modules loaded.  I have to insert the additional options
"--preload=ehci-hcd --preload=usb-storage --preload=sd_mod " In order
to make this work.  See the patch below.   After installing this
special new version of the program "new-kernel-pkg", then kernel
updates go smoothly.

Questions:

1. am I the only one in the world running Fedora from an external
drive these days?  If not, why aren't the other guys commenting on
this?

2. I wish the new-kernel-pkg script would accept command line options
for additional required modules, and somehow the system would know the
modules it needs.  I have a feeling that such a procedure is already
in place, but somehow it was broken when I built these USB drives.
Know what I mean?

pj


diff -rc mkinitrd-6.0.9-orig/grubby/new-kernel-pkg
mkinitrd-6.0.9/grubby/new-kernel-pkg
*** mkinitrd-6.0.9-orig/grubby/new-kernel-pkg   2007-08-30
14:18:01.000000000 -0500
--- mkinitrd-6.0.9/grubby/new-kernel-pkg        2007-08-30
14:18:19.000000000 -0500
***************
*** 236,242 ****

  mkinitrd() {
      [ -n "$verbose" ] && echo "creating initrd $initrdfile using $version"
!     /sbin/mkinitrd --allow-missing -f $initrdfile $version
      rc=$?
      if [ $rc != 0 ]; then
        echo "mkinitrd failed" >&2
--- 236,242 ----

  mkinitrd() {
      [ -n "$verbose" ] && echo "creating initrd $initrdfile using $version"
!     /sbin/mkinitrd --allow-missing --preload=ehci-hcd
--preload=usb-storage --preload=sd_mod -f $initrdfile $version
      rc=$?
      if [ $rc != 0 ]; then
        echo "mkinitrd failed" >&2



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux