[CentOS] Installing from USB flash drive

Wed May 26 21:49:49 UTC 2010
JohnS <jses27 at gmail.com>

On Wed, 2010-05-26 at 15:29 -0500, Les Mikesell wrote:

> 
> It's not the stick of RAM - it's the fact the the grub conf editing is 
> set up to match your initial kernel type and isn't triggered by the 
> install of the PAE kernel or it's subsequent updates.  Look in 
> /etc/sysconfig/kernel.
---

Exceuse the spamming of the list please.  Just a point to point out.
POC Proven.

Maybe add kernel-pae for default.  Not to hard to do.  Installing one
then the other should have no effect in updateing or going back to
'kernel' should have no problem and just update. Mine updated from RT
back to Mainline but to go back to defacto RT  I will have to edit it.
Make any sense?

For others that are saying it want update the boot config then you may
have something wrong somewhere because it should plain out update it.

Repo Mirrored Local 

yum list kernel   ### CentOS Kernel ONLY REPO. I have several repos.
CentOS is the defacto repo here.

Loaded plugins: downloadonly, fastestmirror, kmod, versionlock
Loading mirror speeds from cached hostfile
Reading version lock configuration
Installed Packages
kernel.i686
2.6.18-164.9.1.el5
installed
kernel.i686
2.6.18-164.10.1.el5
installed
kernel.i686
2.6.18-164.11.1.el5
installed
Available Packages
kernel.i686
2.6.18-194.3.1.el5
updates  

## BEFORE ##

[root at XXXX ~]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this
file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title JE2 Enterprise Linux (realtime) (2.6.24.7-149.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-149.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-149.el5.img
title JE2 Enterprise Linux (2.6.24.7-149.el5trace)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-149.el5trace ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-149.el5trace.img
title JE2 Enterprise Linux (2.6.24.7-149.el5vanilla)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-149.el5vanilla ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-149.el5vanilla.img
title JE2 Enterprise Linux (2.6.24.7-146.JonE2trace)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-146.JonE2trace ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-146.JonE2trace.img
title JE2 Enterprise Linux (realtime) (2.6.24.7-146.JonE2)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-146.JonE2 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-146.JonE2.img
title CentOS (2.6.18-164.11.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.11.1.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-164.11.1.el5.img
title CentOS (2.6.18-164.10.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.10.1.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-164.10.1.el5.img
title CentOS (2.6.18-164.9.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.9.1.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-164.9.1.el5.img
********************************************************

Install:

[root at ethies ~]# yum update kernel
Loaded plugins: downloadonly, fastestmirror, kmod, versionlock
Loading mirror speeds from cached hostfile
Reading version lock configuration
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.18-194.3.1.el5 set to be installed
--> Finished Dependency Resolution
Excluding to be erased: kernel-2.6.18-164.9.1.el5.i686
--> Running transaction check
---> Package kernel.i686 0:2.6.18-164.9.1.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                           Arch
Version                                        Repository
Size
=============================================================================================================================================================
Installing:
 kernel                            i686
2.6.18-194.3.1.el5                             updates
17 M
Removing:
 kernel                            i686
2.6.18-164.9.1.el5                             installed
41 M

Transaction Summary
=============================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Total download size: 17 M
Is this ok [y/N]: y
Downloading Packages:
kernel-2.6.18-194.3.1.el5.i686.rpm
|  17 MB     00:03     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel
1/2 
  Cleanup        : kernel
2/2 

Removed:
  kernel.i686
0:2.6.18-164.9.1.el5                                                                                                                           

Installed:
  kernel.i686 0:2.6.18-194.3.1.el5  

## New Kernel ##

[root at XXXX ~]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this
file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.3.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.3.1.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-194.3.1.el5.img
title JE2 Enterprise Linux (realtime) (2.6.24.7-149.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-149.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-149.el5.img
title JE2 Enterprise Linux (2.6.24.7-149.el5trace)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-149.el5trace ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-149.el5trace.img
title JE2 Enterprise Linux (2.6.24.7-149.el5vanilla)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-149.el5vanilla ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-149.el5vanilla.img
title JE2 Enterprise Linux (2.6.24.7-146.JonE2trace)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-146.JonE2trace ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-146.JonE2trace.img
title JE2 Enterprise Linux (realtime) (2.6.24.7-146.JonE2)
        root (hd0,0)
        kernel /vmlinuz-2.6.24.7-146.JonE2 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.24.7-146.JonE2.img
title CentOS (2.6.18-164.11.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.11.1.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-164.11.1.el5.img
title CentOS (2.6.18-164.10.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.10.1.el5 ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-164.10.1.el5.img


John