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