Re: how to always get menu in grub?

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

 



On Sat, May 4, 2019 at 4:29 AM Tom Horsley <horsley1953@xxxxxxxxx> wrote:
>
> I could spend the rest of the weekend trying to follow the "logic"
> in all of the /etc/grub.d files, or maybe I could ask and find
> someone who already knows:
>
> How the devil do I make grub on fedora 30 *always* show the damn
> menu and *always* timeout for 5 seconds?

As an example, on my laptop, I run

# chmod -x /etc/grub.d/*

# vi /etc/grub.d/90-grub.sh
#!/bin/sh

cat <<EOF
# menu default entry
set default=0

# menu timeout
set timeout=2

# disk/partition
insmod part_gpt

# filesystem
insmod ext2

# /boot
search --no-floppy --fs-uuid --set=root ddffca8e-a36c-4afa-8162-2eb84ce8b03f

# kernel
insmod gzio

# video
set gfxmode=auto
terminal_input gfxterm
terminal_output gfxterm
insmod all_video
insmod gfxterm
loadfont /usr/share/grub/unicode.pf2
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext

menuentry 'multi' {
linux /kernel root=UUID=2653b879-3c02-4d05-a678-315259e0e11f ro
initrd /ramfs
}

menuentry 'single' {
linux /kernel root=UUID=2653b879-3c02-4d05-a678-315259e0e11f ro single
initrd /ramfs
}

menuentry 'emergency' {
linux /kernel root=UUID=2653b879-3c02-4d05-a678-315259e0e11f ro emergency
initrd /ramfs
}

menuentry 'multi     [2]' {
linux /kernel2 root=UUID=2653b879-3c02-4d05-a678-315259e0e11f ro
initrd /ramfs2
}

menuentry 'single    [2]' {
linux /kernel2 root=UUID=2653b879-3c02-4d05-a678-315259e0e11f ro single
initrd /ramfs2
}

menuentry 'emergency [2]' {
linux /kernel2 root=UUID=2653b879-3c02-4d05-a678-315259e0e11f ro emergency
initrd /ramfs2
}

menuentry 'firmware' {
fwsetup
}

EOF

# chmod +x /etc/grub.d/90-grub.sh
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[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