From f4c467323f8e588c0976df5b77dada595eec8676 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Mon, 3 Sep 2018 12:40:43 +0200 Subject: check CosmosHash with '-z' --- ks-template/hw/dell/R7425/100g-dtn.ks | 2 +- ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ks-template/hw/dell/R7425/100g-dtn.ks b/ks-template/hw/dell/R7425/100g-dtn.ks index 5381d97..63e94e5 100644 --- a/ks-template/hw/dell/R7425/100g-dtn.ks +++ b/ks-template/hw/dell/R7425/100g-dtn.ks @@ -72,7 +72,7 @@ echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' >>/etc/default/grub # backticks don't work, but $() does CosmosHash=$(cat /proc/cmdline | sed -e 's/.*cosmoshash=//') -if [ "x${CosmosHash}" = "x" ] +if [ -z ${CosmosHash} ] then echo "cannot get cosmos hash from cmdline, not running cosmos-bootstrap" elif [ "${CosmosHash}" = "disabled" ] diff --git a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks index 40bc9bf..b27c8da 100644 --- a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks +++ b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks @@ -67,7 +67,7 @@ chvt 6 # backticks don't work, but $() does CosmosHash=$(cat /proc/cmdline | sed -e 's/.*cosmoshash=//') -if [ "x${CosmosHash}" = "x" ] +if [ -z ${CosmosHash} ] then echo "cannot get cosmos hash from cmdline, not running cosmos-bootstrap" elif [ "${CosmosHash}" = "disabled" ] -- cgit v1.1