[installer]: remove single quotes around the value when create machine.conf (#1552)

Signed-off-by: Guohan Lu <gulv@microsoft.com>
This commit is contained in:
lguohan 2018-03-30 11:37:59 -07:00 committed by GitHub
parent a5bfa2c7ab
commit d66e79d702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,8 @@ if [ "$install_env" = "onie" ]; then
if [ -f /etc/machine-build.conf ]; then if [ -f /etc/machine-build.conf ]; then
# onie_ variable are generate at runtime. # onie_ variable are generate at runtime.
# they are no longer hardcoded in /etc/machine.conf # they are no longer hardcoded in /etc/machine.conf
set | grep ^onie_ > $demo_mnt/machine.conf # also remove single quotes around the value
set | grep ^onie | sed -e "s/='/=/" -e "s/'$//" > $demo_mnt/machine.conf
else else
cp /etc/machine.conf $demo_mnt cp /etc/machine.conf $demo_mnt
fi fi