Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 won't pass quiet to kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Hexorg
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2009
Posts: 114

PostPosted: Wed Aug 20, 2014 2:43 pm    Post subject: Grub2 won't pass quiet to kernel Reply with quote

Hello all. I'm trying to solve a couple of problems I've been having after switching to grub2. One of them is that I can't seem to tell kernel to be quiet during boot. I've tried editing /boot/grub/grub.cfg, I've tried editing the boot parameters directly in grub (when pressing e to edit). No matter what I can't seem to tell kernel to be quet. I've never really dealt with grub2 before, sorry if I'm not attaching other needed files, but here's my /boot/grub/grub.cfg: http://codepad.org/E9TSjkG9
Back to top
View user's profile Send private message
Sulman
n00b
n00b


Joined: 15 Feb 2014
Posts: 63

PostPosted: Wed Aug 20, 2014 2:59 pm    Post subject: Reply with quote

If I'm reading that correctly 'quiet' is set on your advanced entry, which you'd need to select on boot; the default entry doesn't have it.

You're not meant to edit grub.cfg directly, only because it is subject to being overwritten; the 'right' way is to edit /etc/default/grub and then run:

Code:
grub2-mkconfig -o [grub.cfg path]
.

Here's my /etc/default/grub for reference. This is a systemd, LVM, and Linux Raid setup, please ignore those bits.

Code:
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/files/grub.default-2,v 1.4 2013/09/21 18:10:55 floppym Exp $
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
#     'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10

# Append parameters to the linux kernel command line
GRUB_CMDLINE_LINUX="quiet domdadm dolvm real_init=/usr/lib/systemd/systemd"

# Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true


This is the resfulting grub.cfg:

Code:
#
# 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod lvm
insmod ext2
set root='lvm/VolGroup00-lvroot'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvm/VolGroup00-lvroot'  c1341c3e-1ebf-4519-ad7a-131645bb7de8
else
  search --no-floppy --fs-uuid --set=root c1341c3e-1ebf-4519-ad7a-131645bb7de8
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c1341c3e-1ebf-4519-ad7a-131645bb7de8' {
        load_video
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/7f8e1d7863eef98f501f796516b78397'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/7f8e1d7863eef98f501f796516b78397'  7498b30d-a5fa-44e3-a15b-8674835e55c1
        else
          search --no-floppy --fs-uuid --set=root 7498b30d-a5fa-44e3-a15b-8674835e55c1
        fi
        echo    'Loading Linux 3.14.14-gentoo ...'
        linux   /vmlinuz-3.14.14-gentoo root=/dev/mapper/VolGroup00-lvroot ro quiet domdadm dolvm real_init=/usr/lib/systemd/systemd
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-genkernel-x86_64-3.14.14-gentoo
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-c1341c3e-1ebf-4519-ad7a-131645bb7de8' {
        menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.14-gentoo-advanced-c1341c3e-1ebf-4519-ad7a-131645bb7de8' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod part_msdos
                insmod diskfilter
                insmod mdraid1x
                insmod ext2
                set root='mduuid/7f8e1d7863eef98f501f796516b78397'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/7f8e1d7863eef98f501f796516b78397'  7498b30d-a5fa-44e3-a15b-8674835e55c1
                else
                  search --no-floppy --fs-uuid --set=root 7498b30d-a5fa-44e3-a15b-8674835e55c1
                fi
                echo    'Loading Linux 3.14.14-gentoo ...'
                linux   /vmlinuz-3.14.14-gentoo root=/dev/mapper/VolGroup00-lvroot ro quiet domdadm dolvm real_init=/usr/lib/systemd/systemd
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-genkernel-x86_64-3.14.14-gentoo
        }
        menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.14-gentoo-recovery-c1341c3e-1ebf-4519-ad7a-131645bb7de8' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod part_msdos
                insmod diskfilter
                insmod mdraid1x
                insmod ext2
                set root='mduuid/7f8e1d7863eef98f501f796516b78397'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/7f8e1d7863eef98f501f796516b78397'  7498b30d-a5fa-44e3-a15b-8674835e55c1
                else
                  search --no-floppy --fs-uuid --set=root 7498b30d-a5fa-44e3-a15b-8674835e55c1
                fi
                echo    'Loading Linux 3.14.14-gentoo ...'
                linux   /vmlinuz-3.14.14-gentoo root=/dev/mapper/VolGroup00-lvroot ro single quiet domdadm dolvm real_init=/usr/lib/systemd/systemd
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-genkernel-x86_64-3.14.14-gentoo
        }
        menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.14-gentoo.old-advanced-c1341c3e-1ebf-4519-ad7a-131645bb7de8' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod part_msdos
                insmod diskfilter
                insmod mdraid1x
                insmod ext2
                set root='mduuid/7f8e1d7863eef98f501f796516b78397'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/7f8e1d7863eef98f501f796516b78397'  7498b30d-a5fa-44e3-a15b-8674835e55c1
                else
                  search --no-floppy --fs-uuid --set=root 7498b30d-a5fa-44e3-a15b-8674835e55c1
                fi
                echo    'Loading Linux 3.14.14-gentoo.old ...'
                linux   /vmlinuz-3.14.14-gentoo.old root=/dev/mapper/VolGroup00-lvroot ro quiet domdadm dolvm real_init=/usr/lib/systemd/systemd
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-genkernel-x86_64-3.14.14-gentoo
        }
        menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.14-gentoo.old-recovery-c1341c3e-1ebf-4519-ad7a-131645bb7de8' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod part_msdos
                insmod diskfilter
                insmod mdraid1x
                insmod ext2
                set root='mduuid/7f8e1d7863eef98f501f796516b78397'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/7f8e1d7863eef98f501f796516b78397'  7498b30d-a5fa-44e3-a15b-8674835e55c1
                else
                  search --no-floppy --fs-uuid --set=root 7498b30d-a5fa-44e3-a15b-8674835e55c1
                fi
                echo    'Loading Linux 3.14.14-gentoo.old ...'
                linux   /vmlinuz-3.14.14-gentoo.old root=/dev/mapper/VolGroup00-lvroot ro single quiet domdadm dolvm real_init=/usr/lib/systemd/systemd
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-genkernel-x86_64-3.14.14-gentoo
        }
}

### END /etc/grub.d/10_linux ###

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum