double quotes round command line

Alphons van der Heijden <alphons@alphons> 13 Feb 2023, 20:20
ae94fa96d8a48ec7288acc37f73acec3facddaae
1 files changed
  • build.sh
diff --git a/build.sh b/build.sh
index 1e1d323..e3ff2a1 100755
--- a/build.sh
+++ b/build.sh
@@ -35,7 +35,7 @@ WORK=/mnt/sdb1/release/iso_contents/boot
KERNEL=$WORK/vmlinuz64
INITRD=$WORK/corepure64.gz
#rootfs64.gz,$WORK/modules64.gz
-CMDLINE="'loglevel=3'"
+CMDLINE="'loglevel=3 nozswap'"
OUTPUT=/tmp/linux
#
@@ -110,7 +110,7 @@ R_SZ=$(stat -c %s $TMPINITRD)
K_PAD=$(($SECTORSIZE - $K_SZ % $SECTORSIZE))
R_PAD=$(($SECTORSIZE - $R_SZ % $SECTORSIZE))
-nasm -o $OUTPUT -D initRdSizeDef=$R_SZ -D cmdLineDef=$CMDLINE $BOOT
+nasm -o $OUTPUT -D initRdSizeDef=$R_SZ -D cmdLineDef="$CMDLINE" $BOOT
cat $KERNEL >> $OUTPUT
dd if=/dev/zero bs=1 count=$K_PAD status=none >> $OUTPUT