Skip to content

Commit 2f20f3a

Browse files
committed
build.sh: append --cmdline args to default kernel cmdline
Append custom cmdline args instead of overwriting defaults. Signed-off-by: Komal Bajaj <[email protected]>
1 parent 50a395c commit 2f20f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# --systemd Path to systemd boot binaries directory (default: ../artifacts/systemd/usr/lib/systemd/boot/efi)
1414
# --ramdisk Path to ramdisk image (default: ../artifacts/ramdisk.gz)
1515
# --images Output directory for generated images (default: ../images)
16-
# --cmdline Kernel command line arguments (default: predefined string)
16+
# --cmdline Append arguments to Default Kernel command line (default: predefined string)
1717
# --no-debug Skip adding debug.config to kernel build
1818
#
1919
# Description:
@@ -48,7 +48,7 @@ while [[ $# -gt 0 ]]; do
4848
--systemd) SYSTEMD_BOOT_DIR="$(realpath "$2")"; shift 2 ;;
4949
--ramdisk) RAMDISK="$(realpath "$2")"; shift 2 ;;
5050
--images) IMAGES_OUTPUT="$(realpath "$2")"; shift 2 ;;
51-
--cmdline) KERNEL_CMDLINE="$2"; shift 2 ;;
51+
--cmdline) KERNEL_CMDLINE="$KERNEL_CMDLINE $2"; shift 2 ;;
5252
--no-debug) NO_DEBUG=true; shift ;;
5353
--) shift; break ;;
5454
*) echo "Unknown option: $1"; exit 1 ;;

0 commit comments

Comments
 (0)