Boot message kernel 3.2.0 [Solved]

Discussions Regarding Software

Moderator: Moderators

Boot message kernel 3.2.0 [Solved]

Postby cl00t » Sun Feb 12, 2012 10:48

Hello,

Apologies if this is the wrong forum for this.
When booting kernel 3.2.0 there is a message flashed up about VGA=791 being depreciated & to use gfxpayload.

How do I do this please?

(or do I need to do it, the system boots fine)

Thank you.
Last edited by cl00t on Mon Feb 13, 2012 19:37, edited 1 time in total.
cl00t
Growing Hen
 
Posts: 168
Joined: Thu Jan 12, 2012 15:29

Re: Boot message kernel 3.2.0

Postby Fitzcarraldo » Sun Feb 12, 2012 17:25

What does your /boot/grub/grub.cfg file contain? Here's mine for you to compare it with.

Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### 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
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9db2f668-a682-4d6f-abc5-ed6f6c515b95
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos3)'
  search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
  set locale_dir=($root)/grub/locale
  set lang=en_GB
  insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
insmod png
if background_image /grub/default-splash.png ; then
  set color_normal=white/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_distro_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
        echo    'Loading Linux x86_64-3.2.0-sabayon ...'
        linux   /kernel-genkernel-x86_64-3.2.0-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-3.2.0-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-genkernel-x86_64-3.2.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root 597e8c88-8d50-443f-ae19-f510844f5d4e
        echo    'Loading Linux x86_64-3.2.0-sabayon ...'
        linux   /kernel-genkernel-x86_64-3.2.0-sabayon ro single init_opts=single BOOT_IMAGE=/kernel-genkernel-x86_64-3.2.0-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-genkernel-x86_64-3.2.0-sabayon
}
### 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 ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root A6863E9F863E7043
        chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root A2243DA8243D7FF9
        chainloader +1
}
### 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 ###
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Boot message kernel 3.2.0

Postby cl00t » Sun Feb 12, 2012 19:47

Hello,

Here it is:

Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### 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
}

insmod lvm
insmod part_msdos
insmod ext2
set root='(vg_ganymede-lv_root)'
search --no-floppy --fs-uuid --set=root 00f48eec-29a4-456f-961f-82124d84bc8a
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos1)'
  search --no-floppy --fs-uuid --set=root d1fe8586-a2c2-47da-894a-1160f696c4ac
  set locale_dir=($root)/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root d1fe8586-a2c2-47da-894a-1160f696c4ac
insmod png
if background_image /grub/default-splash.png ; then
  set color_normal=white/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_distro_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root d1fe8586-a2c2-47da-894a-1160f696c4ac
   echo   'Loading Linux x86_64-3.2.0-sabayon ...'
   linux   /kernel-genkernel-x86_64-3.2.0-sabayon ro  init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=uk domdadm resume=swap:/dev/mapper/vg_ganymede-lv_swap real_resume=/dev/mapper/vg_ganymede-lv_swap dolvm root=/dev/mapper/vg_ganymede-lv_root docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-genkernel-x86_64-3.2.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root d1fe8586-a2c2-47da-894a-1160f696c4ac
   echo   'Loading Linux x86_64-3.2.0-sabayon ...'
   linux   /kernel-genkernel-x86_64-3.2.0-sabayon ro single init_opts=single  init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=uk domdadm resume=swap:/dev/mapper/vg_ganymede-lv_swap real_resume=/dev/mapper/vg_ganymede-lv_swap dolvm root=/dev/mapper/vg_ganymede-lv_root docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-genkernel-x86_64-3.2.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.0.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root d1fe8586-a2c2-47da-894a-1160f696c4ac
   echo   'Loading Linux x86_64-3.0.0-sabayon ...'
   linux   /kernel-genkernel-x86_64-3.0.0-sabayon ro  init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=uk domdadm resume=swap:/dev/mapper/vg_ganymede-lv_swap real_resume=/dev/mapper/vg_ganymede-lv_swap dolvm root=/dev/mapper/vg_ganymede-lv_root docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-genkernel-x86_64-3.0.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.0.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root d1fe8586-a2c2-47da-894a-1160f696c4ac
   echo   'Loading Linux x86_64-3.0.0-sabayon ...'
   linux   /kernel-genkernel-x86_64-3.0.0-sabayon ro single init_opts=single  init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=uk domdadm resume=swap:/dev/mapper/vg_ganymede-lv_swap real_resume=/dev/mapper/vg_ganymede-lv_swap dolvm root=/dev/mapper/vg_ganymede-lv_root docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-genkernel-x86_64-3.0.0-sabayon
}
### 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  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
cl00t
Growing Hen
 
Posts: 168
Joined: Thu Jan 12, 2012 15:29

Re: Boot message kernel 3.2.0

Postby Fitzcarraldo » Sun Feb 12, 2012 20:45

And...? You have to compare it, not me! Here's a little hint, from which you can deduce whether or not you actually need the vga=791 in /boot/grub/grub.cfg and whether or not the rest of /boot/grub/grub.cfg on your machine could work without it: GRUB 2, graphical boot tips to set the desired VGA console mode.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Boot message kernel 3.2.0

Postby cl00t » Mon Feb 13, 2012 13:48

Hi, thanks for the reply, this is a minefield to me, rather than mess about with a boot file I will leave it.
Thanks anyway.
cl00t
Growing Hen
 
Posts: 168
Joined: Thu Jan 12, 2012 15:29

Re: Boot message kernel 3.2.0

Postby Fitzcarraldo » Mon Feb 13, 2012 14:23

It's no minefield, it's a shagpile capet. From the information I've given above, one can deduce after studying the contents of grub.cfg and reading that article that the contents of grub.cfg are in accordance with the GRUB 2 specification without the inclusion of the deprecated "vga=791" as a kernel boot parameter. One can also see that my grub.cfg I posted also contains "vga=791". Or, rather, used to contain "vga=791", as, after posting, I used nano and removed it from both the normal menu entry and from the Recovery Mode menu entry. As I expected, rebooting went without problems.

After rebooting, the contents of /proc/cmdline do not contain "vga=791", and so, were I to use grub-mkconfig to regenerate grub.cfg in future for any reason, "vga=791" would not be re-added to the freshly-created grub.cfg. Here are the contents of /proc/cmdlne on my machine after rebooting, just to prove it:

Code: Select all
# cat /proc/cmdline
BOOT_IMAGE=/kernel-genkernel-x86_64-3.2.0-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-3.2.0-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:sabayon console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5 intel_iommu=off

To be on the safe side, you might want to edit the part:

Code: Select all
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sab
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2

to add the line set gfxpayload=keep for both menu entries in grub.cfg:

Code: Select all
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.2.0-sab
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2

(ditto for Recovery Mode entry) to make the contents the same as mine, although, if /etc/default/grub contains the line:

Code: Select all
$ cat /etc/default/grub | grep GRUB_GFXMODE
GRUB_GFXMODE=1024x768

then you should be OK anyway (Read the article I referenced.)

There you are, I caved in and worked out the answer for you, you lucky guy. :wink:
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Boot message kernel 3.2.0

Postby cl00t » Mon Feb 13, 2012 18:51

Thank you very much for an excellent reply. I will make use of clonezilla then have a go at this :-) Thank you.
cl00t
Growing Hen
 
Posts: 168
Joined: Thu Jan 12, 2012 15:29

Re: Boot message kernel 3.2.0

Postby cl00t » Mon Feb 13, 2012 19:37

Success !! Thank you
cl00t
Growing Hen
 
Posts: 168
Joined: Thu Jan 12, 2012 15:29

Re: Boot message kernel 3.2.0 [Solved]

Postby sabayonino » Mon Feb 13, 2012 21:08

To set grub_command line parameters you can edit /etc/default/sabayon-grub and run grub-mkconfig to set default :roll:
User avatar
sabayonino
Sagely Hen
 
Posts: 2464
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Boot message kernel 3.2.0 [Solved]

Postby Fitzcarraldo » Mon Feb 13, 2012 21:54

Normally, yes, but the point here is that the OP already had GRUB_GFXMODE=1024x768 in his /etc/default/sabayon-grub and yet he still had vga=791 in his grub.cfg. Regenerating grub.cfg by re-running grub-mkconfig wouldn't change anything.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Software in General

Who is online

Users browsing this forum: No registered users and 3 guests

cron