Up2date -uf changes default kernel in grub config

I just built a new Oracle Linux 5.7 server and I configured it to boot into the Red Hat compatible kernel by default. After running up2date -uf to update all of the packages including the kernels, the grub config is automatically modified to boot back into the oracle uek kernel (default value gets switched back to 0). Is there any way to prevent the system update from changing the default kernel in the grub config?

So that fixed it I guess.
Before upgrade:
# UDPATEDEFAULT specifies if new-kernel-pkg should make
# new kernels the default
UPDATEDEFAULT=no
# DEFAULTKERNEL specifies the default kernel package type
DEFAULTKERNEL=kernel
After upgrade:
# UDPATEDEFAULT specifies if new-kernel-pkg should make
# new kernels the default
UPDATEDEFAULT=no
# DEFAULTKERNEL specifies the default kernel package type
DEFAULTKERNEL=kernel-uek
Also, the default value in grub.conf stays at 1 as opposed to being changed to 0. I don't understand this behavior though. Shouldn't the upgrade create an /etc/sysconfig/kernel.rpmsave or kernel.rpmnew file as opposed to just overwriting parts of the config file?
Edited by: user8697493 on Oct 6, 2011 8:04 AM

Similar Messages

  • Change default kernel config

    I'm unable to boot with the default kernel, since "BIOS Enhanced Disk Drive calls determine boot disk" is enabled.
    One may wonder why is it enabled in default distro kernel anyway. Here a note
    from kernel config:
    "This option is experimental and is known to fail to boot on some obscure configurations. Most disk controller BIOS vendors do not yet implement this feature."
    Maybe its just me, but I really dont consider my configuration as obscure :-)
    It would be great if this was removed from the default kernel unless there is a reason for it to be there?
    The problem occur when I have disks attached to the one of Promise controllers.
    # lspci
    00:00.0 Host bridge: Intel Corporation 82Q963/Q965 Memory Controller Hub (rev 02)
    00:01.0 PCI bridge: Intel Corporation 82Q963/Q965 PCI Express Root Port (rev 02)
    00:02.0 VGA compatible controller: Intel Corporation 82Q963/Q965 Integrated Graphics Controller (rev 02)
    00:19.0 Ethernet controller: Intel Corporation 82566DM Gigabit Network Connection (rev 02)
    00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 02)
    00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
    00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
    00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
    00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
    00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
    00:1f.0 ISA bridge: Intel Corporation 82801HO (ICH8DO) LPC Interface Controller (rev 02)
    00:1f.2 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA AHCI Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
    02:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
    02:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
    04:01.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
    04:03.0 Mass storage controller: Promise Technology, Inc. PDC40718 (SATA 300 TX4) (rev 02)
    04:04.0 Mass storage controller: Promise Technology, Inc. PDC40718 (SATA 300 TX4) (rev 02)

    bugs.archlinux.org to make sure its fixed.
    the acpi video module is reasonably new and it can be compiled as a module iirc, so it shouldnt be any harm to have it compiled as such.
    James

  • [SOLVED]Searching for a way to change default kernel installation path

    Hi,
    ( first of all SRY for my english )
    I've set up a multi boot system onto an USB Stick - something like a personalized Recovery System. Currently I have a 32 and a 64bit version of Arch on it, but may I'll extend it with other distros...
    OK, so far everything is running pretty fine, but every time I do a kernel upgrade I'm running into the following issue:
    Since I'm using a shared boot partition where my GRUB and all of my Kernels (i686, c86_64) lie on. -  I'm using the shared partition for technical reasons (MSDOS part table, max 4 primary partitions ).
    I've organized my kernels in different directorys (e.g. i686, x86_64) and it is no problem to tell GRUB about this, but every time I do a Kernel upgrade the kernel is installed to its default location on /boot/vmlinuz-linux.
    That has two side effects:
       - I have to move the kernel "by hand" to the right directory
       - I've changed the Kernel-Path in mkinitcpio.conf to /boot/xxx/vmlinuz-linux therefore mkinitcpio is not able to create the initramfs because it does not know about the right path
    My current solution is, that I will move the kernel to the appropiate directory and execute mkinitcpio afterwards ... but sometimes it happens that I forget about that and my system is not able to start up again...
    I've thought bout possible solutions via symlinks, mountbinds, shutdown scripts, etc. but I wasn't able to find a proper solution for that problems.
    So far my (long) story. My specific question is, is it possible to change the default installation path of the kernel package? If so that will solve my problem in a elegant way .
    Best regards,
    gnux
    PS.: I was thinking about something like a config e.g. in /etc/kernelpath ... whatever
    Last edited by gnux83 (2013-07-04 11:17:52)

    karol wrote:https://bbs.archlinux.org/viewtopic.php?id=164276
    Thx, I'll go through that

  • Change default btrfs subvolume - GRUB problem

    grub-mkconfig  creates a grub.cfg with this kernel command line:
    linux /vmlinuz-linux root=UUID=88e4e9db-0d5d-4055-bb36-6c4bc3454cb3 rw rootflags=subvol=SB0 quiet video=hyperv_fb:1920x1080
    my problem lies in rootflags=subvol=SB0 where is named a specific btrfs subvolume.
    I would like no subvolume be specified in grub.cfg so that the default one will be mounted as root filesystem.
    The reason is I have arch installed into btrfs subvols and I would like to choose which arch variant to boot simply changing default subvol.
    (I've used the installation tips found at http://www.funtoo.org/BTRFS_Fun )
    This is btrfs root :
    ~/bin > mount /dev/sda2 -o subvolid=0 /mnt
    ~/bin > btrfs filesys show /mnt
    Label: none uuid: 88e4e9db-0d5d-4055-bb36-6c4bc3454cb3
    Total devices 1 FS bytes used 3.47GiB
    devid 1 size 126.81GiB used 6.04GiB path /dev/sda2
    btrfs-progs v3.19.1
    /etc/fstab :
    ~/bin > cat /etc/fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda2
    UUID=88e4e9db-0d5d-4055-bb36-6c4bc3454cb3 / btrfs rw,relatime,space_cache 0 0
    # /dev/sda1
    UUID=df2d9bbc-ab0a-42a5-96ae-7c90f0c15a0e /boot ext3 rw,relatime,data=ordered 0 2
    These are the subvolumes:
    ~/bin > btrfs subvol list /mnt
    ID 260 gen 5129 top level 5 path SB0
    ID 264 gen 4975 top level 260 path SB0/var/lib/machines
    ID 265 gen 5092 top level 5 path SB1
    SB1 is a snapshot of SB0 and both contain an arch installation
    SB1 is default one:
    ~/bin > btrfs subvol get-default /mnt
    ID 265 gen 5092 top level 5 path SB1
    but if I run grub-mkconfig it picks up SB0, in my opinion the wrong one.
    Please note that SB0 is currently mounted as system root:
    ~/bin > findmnt -o SOURCE,TARGET,FSTYPE,FSROOT /
    SOURCE TARGET FSTYPE FSROOT
    /dev/sda2[/SB0] / btrfs /SB0
    Is it possible to tell to grub-mkconfig to not name any specific subvol ?
    If you look into: /etc/grub.d/10_linux
    and search for "btrfs"  it may give an hint, but I don't understand it.
    many thanks in advance
    Andrea
    EDIT: of course, if I change kernel command line by hand (:s/SB0/SB1) it works as expected, but it's not I'm looking for, being grub.cfg an automatically generated file.
    Last edited by Aklo (2015-04-28 11:11:56)

    I don't use GRUB anymore, but I don't recall it requiring a specified subvolume to boot, however if you've installed to a specific subvolume (SB0 in your case), then you will need to to tell GRUB where to look more specifically than just the device and partition (/dev/sda2).
    What might accomplish what you're asking for is to set up seaparate boot entries for the respective subvolumes / installation variants.  Basically manually add another "menuentry" in /boot/grub/grub.cfg and change the subvolume specified:
    /boot/grub/grub.cfg
    menuentry "Arch Linux - SB0" {
    linux /boot/vmlinuz-linux root=/dev/sda2 rootflags=subvol=SB0
    menuentry "Arch Linux - SB1" {
    linux /boot/vmlinuz-linux root=/dev/sda2 rootflags=subvol=SB1
    You'd need to fiddle with /etc/fstab a then since I'm pretty sure something would freak out if you tried to mount two subvolumes to / at the same time (e.g., duplicate entries with different subvolumes specified).  A much simpler solution would be separate root partitions with shared /boot and /home partitions.  Like so (subvolumes would even be optional):
    /dev/sda1 ext3 /boot
    /dev/sda2 btrfs / *"menuentry" in /boot/grub/grub.cfg > title "Arch Linux - SB0"
    /dev/sda3 btrfs / *"menuentry" in /boot/grub/grub.cfg > title "Arch Linux - SB1"
    /dev/sda4 btrfs /home
    Basically you have two separate installations, which is what it sounds like you're asking for that can be selected at boot time and share a /home partition.  The fstabs in each root would only differ at the / partition entry.

  • CiscoWorks Changing Default Line Input during Config push

    If no line input is specified as in this example
    line con 0
    line vty 0 4
    password cisco
    line vty 5 15
    password cisco
    does CiscoWorks change the default line input while pushing a configuration to "transport input none"?

    Config Editor allows you to edit and download configuration files to devices using a GUI instead of the command line interface (CLI). Use Config Editor to edit individual device configurations within RME and then download them back to a device.
    For more details please follow up on this link:
    http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_resource_manager_essentials/4.2/user/guide/cfgedt.html#wp1055028

  • Default kernel config question: acpi video freezes my laptop

    Hi,
    I have a Samsung X60 laptop that freezes when the acpi video module is loaded. The default Arch kernel config (and the derived suspend2 one) includes as built-in some of the acpi code (including the video bit). I'm interested to learn why they are included as built in, and if there is a way to selectively skip the acpi video built-in bit of code? (more selectively than acpi=off as a kernel parameter). Would it be reasonable to request a change to the default kernel config?
    cheers

    bugs.archlinux.org to make sure its fixed.
    the acpi video module is reasonably new and it can be compiled as a module iirc, so it shouldnt be any harm to have it compiled as such.
    James

  • Arch 0.7-Beta2 - Bad default grub config

    Ive just gotten the 0.7 beta working on my new server.
    I had problems when booting into the system, the kernel saying it couldnt mount /dev/discs/disc0/part5 (my / partition)
    ive forgotten the exact error, but it was at the VFS mount point.
    I spent a number of hours trying to figure out what was wrong.
    After a while i came across phrakture's(?) post about having grub problems and tried replacing the root=/dev/hda5 instead of the /dev/discs/... style.
    this worked.
    it would be good if the 0.7 grub config file had something mentioning the different naming schemes for udev vs devfs
    admittedly it has this comment
    # Old /dev DevFS Grub
    # /dev/fd0 /dev/floppy/0 (fd0)
    # /dev/hda /dev/discs/disc0/disc (hd0)
    # /dev/hdb2 /dev/discs/disc1/part2 (hd1,1)
    # /dev/hda3 /dev/discs/disc0/part3 (hd0,2)
    but it is not really clear what one should use.. especially since the /dev/hda section is labeled Old /dev!!?
    for some reason, on _this_ computer (which i installed with 0.6 but have upgraded to use udev), the line root=/dev/discs/disc0/.. works!?
    i just thought it bring it to someones attention before it goes 0.7-final
    another thing, required kernel parameters.. are there any required for Arch to function? I havent seen anything in the wiki mentioning any requirements or even lack there of.
    thanks
    edited to `codify' the menu.1st comment

    Well, if I were to venture a guess, it's because your kernel doesn't have devfs built in at all. So the kernel has no idea what /dev/discs/... is supposed to point to.
    yep, thats what im saying.
    but because its possible to do such a thing, even during the install with the compile youre own kernel option, I think it would be worth adding an example to distinguish between udev and devfs style devices.
    seeing as 0.7 comes udev ready, i didnt expect there to be any trouble with device naming conventions. It took me some hours to realise thats what the problem was.
    i think its worth the effort to save anyone else the trouble in the future.
    thanks again.

  • Is it safe to remove default kernel?

    I've installed linux-ck kernel from repo-ck with nvidia GPU support. Why don't linux-ck and nvidia-ck replace the respective default kernel packages? Is it safe to remove the default kernel like this "# pacman -R linux nvidia" (I boot with linux-ck)? I'm asking because there are often updates to linux package and I don't use it.

    The -ck kernels don't overwrite the kernel, and IDK about the AUR custom kernels, but it's possible to overwrite the stock kernel, especially if you're lazy about looking at the pkgbuild or your own script. I have before. It's not a big deal unless you're missing, you know, like, your disk and keyboard modules.
    If you are worried create backup copies of initramfs-linux.img, vmlinuz-linux, initramfs-linux-fallback.img in /boot, and a grub entry for them... it'll be like nothing changed!
    Last edited by nathan28 (2012-01-15 22:52:49)

  • [solved] Compiling A Custom Kernel W/ Same Config

    I apologize in advance if this is repetitive but i am just a little confused with a few questions.
    What i want to do is be able to pretty much just have the ability to add a module or compile somthing on top of the default linux
    kernel. I guess the only way to do that is to recompile a linux kernel with this guide:
    https://wiki.archlinux.org/index.php/Ke … ild_System
    My questions:
    In the guide it says to change PKGBUILD and change:
    # pkgname=linux-custom       # Build kernel with a different name
    to
    pkgname=linux-test
    I understand that. it also says to disable conflicts if you want two kernels.
    is that just comenting "provides" , "conflicts" and "replaces"
    like:
    #next lines give you problems with nvidia drivers which depend on kernel
    #provides=('kernel26')
    #conflicts=('kernel26')
    #replaces=('kernel26'
    Also when i select or uncomment menuconfig and lets say not change anything at all is that going to be the same configuration as it would be if i were to install the kernel with pacman. It should be the same thing i have right now? right?
    So i can say add framebuffer support or something like that and compile and install and have the exact same kernel now plus FB support.
    Thanks,
    Paul
    Last edited by paulb787 (2012-06-22 05:50:35)

    1.
    What i want to do is be able to pretty much just have the ability to add a module or compile somthing on top of the default linux kernel.
    You would need linux-headers to do that like this (more or less):
    cd your-src/kernel
    make SYSSRC=/lib/modules/${current-kernel-version}/build module
    If you want to customize your kernel further, change its config options, modify default features, etc., then you need to recompile it entirely as described in the Wiki.
    2.
    is that just comenting "provides" , "conflicts" and "replaces"
    Yes. You also need to create a custom linux-${your-custom-kernel-name}.preset in order to generate initramfs. Of course, you can as well use the default name and change the settings in the config file (via menuconfig, nconfig or whatever tool you choose the achieve this). Then nothing has to be changed as all the add-ons will follow the naming convention reserved for the default kernel.
    3.
    Also when i select or uncomment menuconfig and lets say not change anything at all is that going to be the same configuration as it would be if i were to install the kernel with pacman?
    Yes.
    4.
    So i can say add framebuffer support or something like that and compile and install and have the exact same kernel now plus FB support.
    Basically yes, though I'm wondering for which video board you need extra FB support...
    Last edited by bohoomil (2012-06-20 00:41:15)

  • How to change default compile directory tmp_ejb?

    Dear all,
    Someone knows how to change the default directory "tmp_ejb...." in WebLogic Server
    7.0?
    This is the default directory where WebLogic Server 7.0 generates and compiles
    the EJB's declared in config.xml.
    I try to specify the attribute TmpPath="ANOTHER_TMP_LOCATION_DIRECTORY_FOR_EJB"
    in the EJBContainer node but still doesn't work.
    The same thing happens when I test this attribute on EJBComponent declaration.
    Someone knows if there is an enviroment variable that specify this tmp_ejb location
    path?
    It's false that the tmp_ejb is located where the config.xml file is placed.
    I have 3 weblogic servers and they haven't the same behaviour.
    Someone can help me??????
    Thanks.

    I ran into the same problem and was wondering if you got an aswer the question you posted in BEA's news group: "How to change default compile directory tmp_ejb?
    Thanks

  • How to change default action "alarm" for all signatures ?

    My question belongs to a Cisco 1712 (128 MB, IOS 12.3T, SDM 2.5 installed):
    I'm trying to change the default action "alarm" to "alarm,reset,drop" for all signatures of my custom set.
    However doing so via SDM fails. First, it appears as being done correctly, but after compiling the signatures again, the default values are back there (in the same sense, I was unable to delete signatures, works just using the CLI).
    I followed the instructions at cisco.com:
    router(config)#ip ips signature-definition
    router(config-sigdef)#signature 6130 10
    router(config-sigdef-sig)#engine
    router(config-sigdef-sig-engine)#event-action produce-alert
    router(config-sigdef-sig-engine)#event-action deny-packet-inline
    router(config-sigdef-sig-engine)#event-action reset-tcp-connection
    router(config-sigdef-sig-engine)#exit
    However ip ips signature-definition is not understood by the router, so the procedure fails.
    Can you please assist me ?

    You can use IOS command-line interface (CLI) to change signature actions for one signature or a group of signatures based on signature categories. The following example shows how to change signature action to alert, drop and reset for signature 6130 with subsig ID of 10.
    router#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    router(config)#ip ips signature-definition
    router(config-sigdef)#signature 6130 10
    router(config-sigdef-sig)#engine
    router(config-sigdef-sig-engine)#event-action produce-alert
    router(config-sigdef-sig-engine)#event-action deny-packet-inline
    router(config-sigdef-sig-engine)#event-action reset-tcp-connection
    router(config-sigdef-sig-engine)#exit
    router(config-sigdef-sig)#exit
    router(config-sigdef)#exit
    Do you want to accept these changes? [confirm]y
    router(config)#

  • Changing default control values in LV application?

    Can anyone help me?
    Is it possible to change default control values in LV program
    programmatically?
    Sergey Yakovlev, Berlin,
    [email protected]

    Its quite complex (in my opinion) to do so programically , but using a set of invoke nodes, you can get it done ('Make this value default'). Look at the attached for info (its a large link name, so you may have to copy and paste in your browser).
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&2C14132F826F839F8625683A000B0B99&cat=DB5863CD70417B07862567930070A058
    I've been simply using config.txt files of read and write to set values.

  • [svn:fx-trunk] 10269: Changing default for -enable-runtime-design-layers to true.

    Revision: 10269
    Author:   [email protected]
    Date:     2009-09-15 10:46:10 -0700 (Tue, 15 Sep 2009)
    Log Message:
    Changing default for -enable-runtime-design-layers to true.  The flag may still be used to disable processing of design layer instances if so desired.
    QE notes: None
    Doc notes: None
    Bugs: SDK-23238
    Reviewer: Paul
    Tests run: Checkin
    Is noteworthy for integration: Yes, runtime design layers are now enabled by default.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23238
    Modified Paths:
        flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

    APDivs are a thing of the past and is bad practice. You need a working knowledge of CSS to get a modern looking layout and to do justice to your design which looks great btw.
    One out-of-the-box solution is to use Bootstrap - http://twitter.github.com/bootstrap/index.html and use the pre-defined classes/ grids to layout your content.

  • Keyword.url field bloked for changes in a firefox about:config tab (firefox with yandex)

    keyword.url field bloked for changes in a firefox about:config tab (firefox with yandex)

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Cannit retrieve DNC 2.0 Default Destination from web.config

    I am using ConfigDestination class in DNC 2.0 to access SAP backend systems. The class is overloaded requiring either a Destination name or null parameter. If I pass destination name like: ConfigDestination c = new ConfigDestination("CI0230"), it works fine. All the information is retrieved correctly from the web.config file. However, if a pass a null parameter like: ConfigDestination c = new ConfigDestination(), it does not work. It is supposed to use the Default Destination like <Destinations Default="CI0230"> in the config file. Any ideas how to retrieve teh default destination?
    Any help will be appreciated.

    I found the problem.
    The dtd location of the faces-config.xml had to be changed. It was pointing to the schema of 1.1.
    With the following faces-config.xml, my application worked perfectly fine.
    <?xml version="1.0"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
                  version="2.0">             
    </faces-config>

Maybe you are looking for

  • Report for open PO's

    how do i get a report of open PO's with feilds like MRP controller. std. cost per unit, PO open quantity etc.?

  • Adobe Premiere Elements 12 will launch and then vanish

    Okay so just bought Adobe Premiere Elements 12. Loaded it up and went to run it. First time I ran it I get the Adobe Premiere Elements 12 Launch pad, you know where you select the Organizer or the video editor. I select video editor, it gives me a su

  • 10.3 Apps crash whenever trying to use the clipboard

    Hello all, My girlfriend recently got a B+W G3 350. We spent some time with it and have 10.3.3 up and running quite nicely. There is only one small problem: whenever you try and copy or paste text in any application (we've tried Safari, FireFox, Text

  • Process Composer - Automated Activity - Output Mapping Error

    Hi, I am trying to consume the standard DocumentERPCreateRequestConfirmation_In_V1 service in a process - CE 7.1 EHP1. Created one automated activity in the process to execute this service. When I try to do Output Mapping for the automated activity t

  • Why aren't songs i purchased appearing on itunes?

         Awhile ago, I bought the songs 21 Guns and Know Your Enemy off of the album 21st Century Breakdown on iTunes. When I searched these, I bought the first copies on the list. These were off of 21st Century Breakdown (Deluxe Version). Later, I purch