summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakirnth Nagarasa <sakirnth@gmail.com>2021-09-01 11:24:17 +0000
committerSakirnth Nagarasa <sakirnth@gmail.com>2021-09-01 11:24:17 +0000
commitb04c8adf50e570c0476b32e5dc89cf61c19876fb (patch)
treeeedc60cd3be644ec9adf6806671c2f91698187c7
parentCorrecting qemu help output. (diff)
downloadcompute-tools-b04c8adf50e570c0476b32e5dc89cf61c19876fb.tar.xz
compute-tools-b04c8adf50e570c0476b32e5dc89cf61c19876fb.zip
Handling arguemnt id for qemu script.
Signed-off-by: Sakirnth Nagarasa <sakirnth@gmail.com>
-rwxr-xr-xlibexec/container/create-qemu2
-rwxr-xr-xshare/build-scripts/qemu9
2 files changed, 8 insertions, 3 deletions
diff --git a/libexec/container/create-qemu b/libexec/container/create-qemu
index 9fadc44..8abd861 100755
--- a/libexec/container/create-qemu
+++ b/libexec/container/create-qemu
@@ -28,7 +28,7 @@ COMMAND="$(basename ${0})"
CONFIG="/etc/${SOFTWARE}/config"
HOOKS="/etc/${SOFTWARE}/hooks"
MACHINES="/var/lib/machines"
-SCRIPTS="/usr/share/${SOFTWARE}/scripts"
+SCRIPTS="/usr/share/${SOFTWARE}/build-scripts"
Parameters ()
{
diff --git a/share/build-scripts/qemu b/share/build-scripts/qemu
index 4a0540d..4104d1c 100755
--- a/share/build-scripts/qemu
+++ b/share/build-scripts/qemu
@@ -33,8 +33,8 @@ export SCRIPT
Parameters ()
{
- GETOPT_LONGOPTIONS="bind:,bind-ro:,script:,name:,preseed-file:,boot-method:,"
- GETOPT_OPTIONS="b:,s:,n:,p:"
+ GETOPT_LONGOPTIONS="id:,bind:,bind-ro:,script:,name:,preseed-file:,boot-method:,"
+ GETOPT_OPTIONS="i:,b:,s:,n:,p:"
PARAMETERS="$(getopt --longoptions ${GETOPT_LONGOPTIONS} --name=${SCRIPT} --options ${GETOPT_OPTIONS} --shell sh -- "${@}")"
@@ -49,6 +49,11 @@ Parameters ()
while true
do
case "${1}" in
+ -i|--id)
+ # ignore
+ shift 2
+ ;;
+
-b|--bind)
# ignore
shift 2