Re: Configure Grub2 with Multiple Boot Options?
I probably should have include this in the original post (my apologies).
The additional menu entry was added to /etc/default/grub per
"Configuring grub v2" at https://wiki.debian.org/Grub:
$ sudo cat /etc/default/grub
[sudo] password:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="initrd=/install/gtk/initrd.gz"
# GRUB_CMDLINE_LINUX_DEFAULT="syscall.x32=y quiet"
GRUB_CMDLINE_LINUX="syscall.x32=y"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# 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
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
On Tue, Oct 6, 2015 at 10:31 AM, Jeffrey Walton <noloader@gmail.com> wrote:
> I'm having trouble learning how to add multiple boot configurations to
> Debian's Grub2.
>
> Debian has Grub pages at https://wiki.debian.org/Grub and
> https://wiki.debian.org/GrubConfiguration, but they lack practical
> examples for multiple boot configurations.
>
> Would someone please update update the pages and discuss multiple boot
> configurations like detailed below?
>
> Thanks in advance.
>
> *****
>
> Here's the back story... A Debian maintainer broke us under X32
> (https://wiki.debian.org/X32Port). We needed to enable X32 under
> Debian 8 and perform specific testing in that configuration. But we
> also want to retain the original Debian 8 for testing, too.
>
> So what I want in my Grub menu during boot is:
>
> * Debian GNU/Linux
> * Debian GNU/Linux (X32)
> * Advanced Options ...
> * Memory Test ...
>
> Debian GNU/Linux should boot with default options.
>
> Debian GNU/Linux (X32) is new, and it should boot with
> GRUB_CMDLINE_LINUX="syscall.x32=y" in accordance with
> https://wiki.debian.org/X32Port.
>
> The configuration changes should also survive various updates and dist-updates.
>
> Trying to get Grub into a "multiple boot options" based on the docs is
> proving to be difficult.
>
> *****
>
> And to be clear, I don't care about examples like below. I don't boot
> like that; rather I select a Grub menu item.
>
> grub> kernel (hd0,0)/vm
Reply to: