From aa714f49c4b180e21caa4e043d63ab661fce5bc1 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 13 Jul 2024 16:51:10 +0200 Subject: [PATCH] grub: test Signed-off-by: AuxXxilium --- files/p1/boot/grub/grub.cfg | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/files/p1/boot/grub/grub.cfg b/files/p1/boot/grub/grub.cfg index a2dcd1ef..eb0eff44 100644 --- a/files/p1/boot/grub/grub.cfg +++ b/files/p1/boot/grub/grub.cfg @@ -11,7 +11,6 @@ insmod gzio insmod fat insmod ext2 insmod png -insmod jpeg set default="boot" set timeout="5" @@ -82,6 +81,19 @@ set color_normal=white/black set ARC_CMDLINE="earlyprintk earlycon=ttyS0,115200 console=ttyS0,115200 root=/dev/ram rootwait pcie_aspm=off net.ifnames=0 ipv6.disable=1" +search --set=root --label "ARC1" +if [ -s /.build ]; then + menuentry 'Arc Automated Config Mode' --id automated { + search --set=root --label "ARC3" + set_gfxpayload + echo "Loading Arc Kernel..." + linux /bzImage-arc ${ARC_CMDLINE} ${arc_cmdline} automated_arc + echo "Loading Arc Initramfs..." + initrd /initrd-arc + echo "Booting..." + } +fi + search --set=root --label "ARC3" if [ -s /zImage-dsm -a -s /initrd-dsm ]; then if [ "${default}" = "direct" ]; then