On Sat, May 4, 2019 at 4:29 AM Tom Horsley <horsley1...@gmail.com> 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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to