Skip to content

Commit 47be43d

Browse files
authored
Merge pull request #22 from quic-khuzuri/latest
Update build-ubuntu-rootfs.sh
2 parents 5d9caf1 + 1ca2384 commit 47be43d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

rootfs/scripts/build-ubuntu-rootfs.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ KERNEL_DEB=""
6262
FIRMWARE_DEB=""
6363
USE_CONF=0
6464
USE_MANIFEST=0
65+
TARGET=""
6566

6667
if [[ $# -eq 4 ]]; then
6768
CONF="$1"
@@ -85,6 +86,7 @@ elif [[ $# -eq 3 ]]; then
8586
FIRMWARE_DEB="$2"
8687
USE_CONF=0
8788
USE_MANIFEST=0
89+
TARGET="$3"
8890
fi
8991
elif [[ $# -eq 2 ]]; then
9092
CONF=""
@@ -399,7 +401,17 @@ crd_dtb_path=\"/lib/firmware/\$kernel_ver/device-tree/x1e80100-crd.dtb\"
399401
echo '[CHROOT] Writing GRUB configuration...'
400402
tee /boot/grub.cfg > /dev/null <<GRUBCFG
401403
set timeout=5
402-
set default=${CODENAME}_crd
404+
\#set default=${CODENAME}_crd
405+
set default=\"QLI\"
406+
if [ "$TARGET" == \"hamoa\" ]; then
407+
set default=\"hamoa\"
408+
fi
409+
menuentry \"Ubuntu QLI IoT for X Elite CRD\" --id QLI {
410+
search --no-floppy --label system --set=root
411+
linux /boot/vmlinuz-\$kernel_ver earlycon console=ttyMSM0,115200n8 root=LABEL=system cma=128M rw clk_ignore_unused pd_ignore_unused efi=noruntime rootwait ignore_loglevel
412+
initrd /boot/initrd.img-\$kernel_ver
413+
}
414+
403415
menuentry \"Ubuntu ${CODENAME} IoT for X Elite CRD\" --id ${CODENAME}_crd {
404416
search --no-floppy --label system --set=root
405417
devicetree \$crd_dtb_path

0 commit comments

Comments
 (0)