Re: GRUB2 / Kernel-Parameters

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

 



Mindless reflex reaction here, but have you tried editing
/etc/grub.d/40_custom ?

Or adding your own /etc/grub.d/25_myparams or something?

[OT Rant:

Haven't done this on grub as installed by Fedora. Have used some of
this kind of configuration to get the grub Debian installs to find my
Fedora stuff. I personally think this is purely backwards, having one
OS peek into all the rest.

Security hole.

And it means you tend to have to remember which OS install has your
master grub, and anytime any other OS install gets a kernel update, go
to the master OS install and update it, too.

To a hammer, everything is a nail, but why does the grub menu need to
be so complicated as to require configuration scripts?

Chaining is the correct way to do that, even among Linux peers, I
don't care what they say.

End-OT-Rant.]

On Sat, Mar 10, 2012 at 9:53 AM, Reindl Harald <h.reindl@xxxxxxxxxxxxx> wrote:
> where the hell are kernel-params in F16 configured?
>
> [root@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@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@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@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
>
>
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>



-- 
--
Joel Rees
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux