GRUB2 / Kernel-Parameters

Reindl Harald h.reindl at thelounge.net
Sat Mar 10 00:53:07 UTC 2012


where the hell are kernel-params in F16 configured?

[root at testserver:~]$ cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub

BULLSHIT: "/etc/default/grub" is ignored
it is displayed by "grub2-mkconfig" somewhere
BUT "/boot/grub2/grub.cfg" still contains this useless graphical boot and "quiet"

[root at testserver:~]$ cat /boot/grub2/grub.cfg | grep linux
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux, with Linux 3.2.9-2.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
        linux   /vmlinuz-3.2.9-2.fc16.x86_64 root=UUID=9b4bf81a-5b1e-4922-b0d1-e6b65e9b61f9 ro quiet rhgb
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

__________________________

[root at testserver:~]$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
# GRUB_TERMINAL="serial console"
# GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600"
GRUB_CMDLINE_LINUX="rd.plymouth=0 nomodeset selinux=0 scsi_mod.scan=sync elevator=noop divider=10 clocksource=hpet
noisapnp noresume nodomains nobar norom printk.time=0 thermal.off=1 nmi_watchdog=0 pcie_aspm=off"
GRUB_DISABLE_RECOVERY="true"
__________________________


[root at testserver:~]$ grub2-mkconfig
Generating grub.cfg ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
Found linux image: /boot/vmlinuz-3.2.9-2.fc16.x86_64
Found initrd image: /boot/initramfs-3.2.9-2.fc16.x86_64.img
menuentry 'Fedora Linux, with Linux 3.2.9-2.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd5,msdos1)'
        search --no-floppy --fs-uuid --set=root 6f7807bd-a508-44c7-9e72-651f82b6ad6c
        echo    'Loading Linux 3.2.9-2.fc16.x86_64 ...'
        linux   /vmlinuz-3.2.9-2.fc16.x86_64 root=UUID=9b4bf81a-5b1e-4922-b0d1-e6b65e9b61f9 ro rd.plymouth=0
nomodeset selinux=0 scsi_mod.scan=sync elevator=noop divider=10 clocksource=hpet noisapnp noresume nodomains nobar
norom printk.time=0 thermal.off=1 nmi_watchdog=0 pcie_aspm=off
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-3.2.9-2.fc16.x86_64.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux.save ###
Found linux image: /boot/vmlinuz-3.2.9-2.fc16.x86_64
Found initrd image: /boot/initramfs-3.2.9-2.fc16.x86_64.img
menuentry 'Fedora Linux, with Linux 3.2.9-2.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd5,msdos1)'
        search --no-floppy --fs-uuid --set=root 6f7807bd-a508-44c7-9e72-651f82b6ad6c
        echo    'Loading Linux 3.2.9-2.fc16.x86_64 ...'
        linux   /vmlinuz-3.2.9-2.fc16.x86_64 root=UUID=9b4bf81a-5b1e-4922-b0d1-e6b65e9b61f9 ro rd.plymouth=0
nomodeset selinux=0 scsi_mod.scan=sync elevator=noop divider=10 clocksource=hpet noisapnp noresume nodomains nobar
norom printk.time=0 thermal.off=1 nmi_watchdog=0 pcie_aspm=off
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-3.2.9-2.fc16.x86_64.img
}
### END /etc/grub.d/10_linux.save ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
done

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120310/16e94e39/attachment.sig>


More information about the users mailing list