[sles-beta] SLES12-Beta3 splash grub2 problem grub2-mkconfig does not change /boot/grub2/grub.cfg
urs.frey at post.ch
urs.frey at post.ch
Fri Mar 28 02:37:48 MDT 2014
Hello Karol
Thank you very much! Shame on me, not reading the man page carefully...
SYNOPSIS
grub-mkconfig [OPTION]
DESCRIPTION
Generate a grub config file
-o, --output=FILE
output generated config to FILE [default=stdout]
YES you are right!
h063uz:~ # grep splash /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 resume=/dev/sdb1 splash=verbose showopts crashkernel=256M-:128M"
h063uz:~ # grep splash /boot/grub2/grub.cfg
linux /vmlinuz-3.12.14-1-default root=UUID=9a33ade3-9ee0-4323-a967-f205ddea3e83 splash=silent quiet net.ifnames=0 resume=/dev/sdb1 splash=silent showopts crashkernel=256M-:128M
linux /vmlinuz-3.12.14-1-default root=UUID=9a33ade3-9ee0-4323-a967-f205ddea3e83 splash=silent quiet net.ifnames=0 resume=/dev/sdb1 splash=silent showopts crashkernel=256M-:128M
h063uz:~ # grub2-mkconfig --output=/boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/SLE/theme.txt
Found linux image: /boot/vmlinuz-3.12.14-1-default
Found initrd image: /boot/initrd-3.12.14-1-default
No volume groups found
done
h063uz:~ # grep splash /boot/grub2/grub.cfg
linux /vmlinuz-3.12.14-1-default root=UUID=9a33ade3-9ee0-4323-a967-f205ddea3e83 net.ifnames=0 resume=/dev/sdb1 splash=verbose showopts crashkernel=256M-:128M
linux /vmlinuz-3.12.14-1-default root=UUID=9a33ade3-9ee0-4323-a967-f205ddea3e83 net.ifnames=0 resume=/dev/sdb1 splas =verbose showopts crashkernel=256M-:128M
h063uz:~ #
Thank you very much
Best regards
Urs Frey
Post CH AG
Informationstechnologie
IT Betrieb
Webergutstrasse 12
3030 Bern (Zollikofen)
Telefon : ++41 (0)58 338 58 70
FAX : ++41 (0)58 667 30 07
E-Mail: urs.frey at post.ch
-----Ursprüngliche Nachricht-----
Von: Karol Mroz [mailto:kmroz at suse.com]
Gesendet: Thursday, March 27, 2014 11:49 PM
An: Frey Urs, IT222
Cc: sles-beta at lists.suse.com
Betreff: Re: [sles-beta] SLES12-Beta3 splash grub2 problem grub2-mkconfig does not change /boot/grub2/grub.cfg
On Thu, Mar 27, 2014 at 09:48:39AM +0000, urs.frey at post.ch wrote:
> Hi
Hi Urs,
Please see inline...
>
> When there is need getting rid of the default setting splash=silent in grub2, one may change the file
> /etc/default/grub
> This is directed in /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
> #
>
> The problem is now, when I am going to change in /etc/default/grub from slash=silent quiet => splash=verbose
> and run grub2-mkconfig, within the file /boot/grub2/grub.cfg nothing gets changed
>
>
> h063uz:~ # grep splash /boot/grub2/grub.cfg
> linux /vmlinuz-3.12.14-1-default root=UUID=9a33ade3-9ee0-4323-a967-f205ddea3e83 splash=silent quiet net.ifnames=0 resume=/dev/sdb1 splash=silent showopts crashkernel=256M-:128M
> linux /vmlinuz-3.12.14-1-default root=UUID=9a33ade3-9ee0-4323-a967-f205ddea3e83 splash=silent quiet net.ifnames=0 resume=/dev/sdb1 splash=silent showopts crashkernel=256M-:128M
> h063uz:~ # grep splash /etc/default/grub
> GRUB_CMDLINE_LINUX_DEFAULT="splash=silent net.ifnames=0 resume=/dev/sdb1 splash=silent quiet showopts crashkernel=256M-:128M"
> h063uz:~ # sed -i "s/splash=silent/splash=verbose/g" /etc/default/grub
> h063uz:~ # sed -i "s/quiet//g" /etc/default/grub
> h063uz:~ # grep splash /etc/default/grub
> GRUB_CMDLINE_LINUX_DEFAULT="splash=verbose net.ifnames=0 resume=/dev/sdb1 splash=verbose showopts crashkernel=256M-:128M"
> h063uz:~ # grub2-mkconfig
I believe the above command should be: # grub2-mkconfig --output=/boot/grub2/grub.cfg
Issuing the command without the --output switch only dumps the newly generated file (with changes parsed from
/etc/default/grub) to stdout.
Please give this a try to see if it corrects the problem for you.
-Karol
More information about the sles-beta
mailing list