[Ubuntu PA] blocking kernel upgrades - grub

Jim Fisher pechterbread at yahoo.com
Mon Jun 4 14:21:28 BST 2007


kev,

if you are hell bent on blocking kernel updates to
grub

check this out :

2.2 Making a change survive upgrades

Depending on how frequently you upgrade your system,
you might find that when a new kernel is installed, or
grub is upgraded (there may be other scenarios), the
/boot/grub/menu.lst file may be replaced by a newer
version, or a new line might be added for the new
kernel. In this case, your "permanent" changes might
be as permanent as you thought.

The best way to address this is to change the
"#kopt..." line in /boot/grub/menu.lst. Note that the
line is not commented out, even though it starts with
a "#". See the excerpt below.

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST
markers will be modified
    ## by the debian update-grub script except for the
default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your
needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot
options
    ## If you want special options for specific
kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions
can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    #
kopt=root=UUID=fccafcc7-d7cc-4594-9459-a8f0db7b9f7f ro

Add the parameter changes to the end of the line
"#kopt...". These parameters will then be
automatically added to any new kernel entries and
should also survive an upgrade of grub.


jedijf
jim fisher

Jim Fisher

Pechter's of Southern New Jersey, LLC
PO Box 2069 
2 Surrey Lane
Cinnaminson , NJ 08077

OFFICE 856-786-8000

FAX      856-786-0088

EMERGENCY   1-877-713-1644

EMAIL jfisher at pechtersnj.com

Website: http://www.pechtersnj.com

BLOG: http://360.yahoo.com/pechterbread



More information about the Ubuntu-us-pa mailing list