From 1ea637794c86be2ddfc77b6d33a017dfc8d5362e Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Tue, 8 Aug 2017 15:00:32 -0700 Subject: [PATCH] oem/oracle: Add option to add kernel arguments to iPXE script --- oem/oracle/launch-instance | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/oem/oracle/launch-instance b/oem/oracle/launch-instance index 23a6290d72..cea9c542b3 100755 --- a/oem/oracle/launch-instance +++ b/oem/oracle/launch-instance @@ -15,6 +15,7 @@ ipxe=0 ignition= baseurl="http://alpha.release.core-os.net/amd64-usr/current" bucket_base="users.developer.core-os.net/$USER/bmcs" +kargs= # Parse args usage="Usage: $0 [args] -n name @@ -29,9 +30,10 @@ Options: -I IMAGE-ID Image ID to use; only relevant for non-iPXE (default: ${image_id}) -b BASEURL URL to the image mirror; only relevant for iPXE (default: ${baseurl}) -B BUCKET-BASE GS bucket and relative path for iPXE script (default: ${bucket_base}) + -k ARGS Additional kernel command line arguments for iPXE script -h This ;-) " -while getopts "c:a:n:s:S:i:pI:b:B:h" OPTION +while getopts "c:a:n:s:S:i:pI:b:B:k:h" OPTION do case "${OPTION}" in c) compartment="${OPTARG}" ;; @@ -44,6 +46,7 @@ do I) image_id="${OPTARG}" ;; b) baseurl="${OPTARG}" ;; B) bucket_base="${OPTARG}" ;; + k) kargs="${OPTARG}" ;; h) echo "${usage}"; exit 2 ;; *) exit 2 ;; esac @@ -82,7 +85,7 @@ if [[ "${ipxe}" = 1 ]]; then cat >"${tmpdir}/ipxe" <