summaryrefslogtreecommitdiffstats
path: root/libexec/container
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/start-qemu7
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/container/start-qemu b/libexec/container/start-qemu
index 3f05c8c..c81e6f5 100755
--- a/libexec/container/start-qemu
+++ b/libexec/container/start-qemu
@@ -253,8 +253,11 @@ then
MEMORY="-m $(awk -Fmemory= '/^memory=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
- SERIAL="-serial $(awk -Fserial= '/^serial=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
- # FIXME empty
+ if [ -z "$(awk -Fserial= '/^serial=/ { print $2 }' ${CONFIG}/${NAME}.conf)" ]
+ SERIAL=""
+ else if
+ SERIAL="-serial $(awk -Fserial= '/^serial=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
+ fi
RAW_OPTIONS="$(awk -Fraw-options= '/^raw-options=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
# FIXME empty