1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-27 09:14:28 +01:00
OpenVoiceOS/buildroot-external/board/ovos/raspberrypi/grub-efi.cfg

35 lines
1.3 KiB
INI
Raw Normal View History

2023-08-21 10:05:43 +02:00
set default="0"
set fallback="1"
set timeout="1"
set MACHINE_ID=""
if [ "$MACHINE_ID" == "" ]; then
boot_condition="systemd.condition-first-boot=true"
fi
set menu_color_normal=white/black
set menu_color_highlight=white/red
load_env
default_cmdline="rootfstype=squashfs systemd.machine_id=$MACHINE_ID fsck.repair=yes zram.enabled=1 zram.num_devices=3 console=console consoleblank=0 loglevel=0 vt.global_cursor_default=0 logo.nologo systemd.show_status=0 systemd.unified_cgroup_hierarchy=1 cgroup_enable=cpuset cgroup_memory=1 $boot_condition rootwait quiet splash"
2023-08-21 10:05:43 +02:00
file_env -f ($root)/cmdline.txt cmdline
regexp --set 1:boothd (.+),.+ ${root}
menuentry "OpenVoiceOS - Slot A" {
2023-08-25 17:01:20 +02:00
linux (${boothd},gpt2)/boot/kernel root=PARTUUID=c0932a41-44cf-463b-8152-d43188553ed4 ro $default_cmdline $cmdline
2023-08-21 10:05:43 +02:00
}
menuentry "OpenVoiceOS - Slot B" {
2023-08-25 17:01:20 +02:00
linux (${boothd},gpt3)/boot/kernel root=PARTUUID=3adea996-45ad-4928-920e-ffb5aedd00cb ro $default_cmdline $cmdline
2023-08-21 10:05:43 +02:00
}
menuentry "OpenVoiceOS - Slot A (Rescue shell)" {
2023-08-25 17:01:20 +02:00
linux (${boothd},gpt2)/boot/kernel root=PARTUUID=c0932a41-44cf-463b-8152-d43188553ed4 ro $default_cmdline $cmdline systemd.unit=rescue.target
2023-08-21 10:05:43 +02:00
}
menuentry "OpenVoiceOS - Slot B (Rescue shell)" {
2023-08-25 17:01:20 +02:00
linux (${boothd},gpt3)/boot/kernel root=PARTUUID=3adea996-45ad-4928-920e-ffb5aedd00cb ro $default_cmdline $cmdline systemd.unit=rescue.target
2023-08-21 10:05:43 +02:00
}