From 7e69353ade32479b01094c710bee4d4dbe1923d1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 31 Dec 2025 21:43:34 +0000 Subject: [PATCH] Address code review feedback: remove redundant boot commands and improve readability - Remove redundant 'boot' commands from GRUB menu entries (GRUB auto-boots after linux command) - Split long module list across multiple lines for better readability - Maintain intentional module duplication for bootstrap safety Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- scripts/docker-image-create-uefi.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/docker-image-create-uefi.sh b/scripts/docker-image-create-uefi.sh index 3a91ca5..5805d82 100755 --- a/scripts/docker-image-create-uefi.sh +++ b/scripts/docker-image-create-uefi.sh @@ -27,7 +27,9 @@ grub-mkstandalone \ --output=/staging/esp/EFI/BOOT/BOOTX64.EFI \ --locales="" \ --fonts="" \ - --modules="part_gpt part_msdos fat ext2 normal linux all_video video_bochs video_cirrus gfxterm search search_label search_fs_uuid" \ + --modules="part_gpt part_msdos fat ext2 normal linux \ + all_video video_bochs video_cirrus gfxterm \ + search search_label search_fs_uuid" \ "boot/grub/grub.cfg=/tmp/embedded_grub.cfg" # Find the kernel @@ -70,22 +72,16 @@ echo "SparkOS Boot Menu - Starting in \$timeout seconds..." menuentry "SparkOS" { echo "Loading SparkOS kernel..." linux /boot/vmlinuz root=LABEL=$ROOT_LABEL ro init=/sbin/init console=tty0 console=ttyS0,115200n8 - echo "Booting..." - boot } menuentry "SparkOS (Verbose Mode)" { echo "Loading SparkOS kernel in verbose mode..." linux /boot/vmlinuz root=LABEL=$ROOT_LABEL ro init=/sbin/init console=tty0 console=ttyS0,115200n8 debug loglevel=7 - echo "Booting in verbose mode..." - boot } menuentry "SparkOS (Recovery Mode)" { echo "Loading SparkOS kernel in recovery mode..." linux /boot/vmlinuz root=LABEL=$ROOT_LABEL rw init=/bin/sh console=tty0 console=ttyS0,115200n8 - echo "Booting into recovery shell..." - boot } EOF