[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:
parent
a5bfa2c7ab
commit
d66e79d702
@ -455,7 +455,8 @@ if [ "$install_env" = "onie" ]; then
|
||||
if [ -f /etc/machine-build.conf ]; then
|
||||
# onie_ variable are generate at runtime.
|
||||
# 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
|
||||
cp /etc/machine.conf $demo_mnt
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user