Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

40_custom example five additional OS in the GRUB menu #14

Closed
Axellarator opened this issue Sep 6, 2022 · 0 comments
Closed

40_custom example five additional OS in the GRUB menu #14

Axellarator opened this issue Sep 6, 2022 · 0 comments

Comments

@Axellarator
Copy link

Simple example for a modified GRUB menu. In the moment os-prober can't deliver all possible OS in your system due to security restrictions. This is a possible way to get around and not in harms way. I use /@/boot/vmlinuzand /@/boot/initrd.img as links, because if a kernel update is needed, everything points correctly to the latest (updated) version.


\#! /usr/bin/sh exec tail -n +3 $0 \# 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.'''

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

menuentry "LM 21 Mate" --class linuxmint --class gnu-linux --class gnu --class os {
# DEVICE="/dev/nvme0n1p5"
UUID_BTRFS=714517ab-c90d-42ca-a492-245053ae57fd
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod part_gpt
insmod btrfs
search --no-floppy --fs-uuid --set=root ${UUID_BTRFS}
linux /@/boot/vmlinuz root=UUID=${UUID_BTRFS} ro rootflags=subvol=@ ${GRUB_CMDLINE_LINUX } ${GRUB_CMDLINE_LINUX_DEFAULT}
initrd /@/boot/initrd.img
}
menuentry "LM 21 Cinnamon" --class linuxmint --class gnu-linux --class gnu --class os {
# DEVICE="/dev/nvme0n1p6"
UUID_BTRFS=6bf64ce2-c8a5-4dda-b8f8-491615008b43
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod part_gpt
insmod btrfs
search --no-floppy --fs-uuid --set=root ${UUID_BTRFS}
linux /@/boot/vmlinuz root=UUID=${UUID_BTRFS} ro rootflags=subvol=@ ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}
initrd /@/boot/initrd.img
}
menuentry "LMDE 5 Elsie" --class linuxmint --class gnu-linux --class gnu --class os {
# DEVICE="/dev/nvme0n1p7"
UUID_BTRFS=35c3a7e0-1aa7-4a70-9e87-18d2a0acce4b
load_video
insmod gzio
insmod part_msdos
insmod part_gpt
insmod btrfs
search --no-floppy --fs-uuid --set=root ${UUID_BTRFS}
linux /@/vmlinuz root=UUID=${UUID_BTRFS} ro rootflags=subvol=@ ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}
initrd /@/initrd.img
}
menuentry 'LM 20.3 Mate' --class linuxmint --class gnu-linux --class gnu --class os {
# DEVICE="/dev/nvme0n1p8"
UUID_BTRFS=138cabd1-b0de-4b57-a9f4-338970fe7df0
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod part_gpt
insmod btrfs
search --no-floppy --fs-uuid --set=root ${UUID_BTRFS}
linux /@/boot/vmlinuz root=UUID=${UUID_BTRFS} ro rootflags=subvol=@ ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}
initrd /@/boot/initrd.img
}
menuentry "LM 20.3 Zimt" --class linuxmint --class gnu-linux --class gnu --class os {
# DEVICE="/dev/nvme0n1p9"
UUID_BTRFS=2f5717f8-09e6-44b1-a836-a9eb8238efc4
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod part_gpt
insmod btrfs
search --no-floppy --fs-uuid --set=root ${UUID_BTRFS}
linux /@/boot/vmlinuz root=UUID=${UUID_BTRFS} ro rootflags=subvol=@ ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}
initrd /@/boot/initrd.img
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants