mk-pxelinux-ramfs: fix escaping kexec appends

Currently multiple entries in a single append is broken by how the
shell in busybox escapes them. No usual grouping with " or ' will
work but calling them directly but without the --append in the
variable will let busybox do the right thing.

GitHub-ID: #16

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Acked-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
This commit is contained in:
Christian Ehrhardt
2017-11-13 05:32:19 -05:00
committed by Michael Holzheu
parent 7b84e30471
commit 9259370891

View File

@@ -386,15 +386,13 @@ else
INITRD=""
fi
if [ -n "$append" ]
then
APPEND="--append=$append"
if [ -z "$append" ]; then
echo "Kexec load: kexec -l /tmp/kernel $INITRD"
kexec -l /tmp/kernel $INITRD
else
APPEND=""
echo "Kexec load: kexec -l /tmp/kernel $INITRD --append=\"$append\""
kexec -l /tmp/kernel $INITRD --append="$append"
fi
echo "Kexec load: kexec -l /tmp/kernel $INITRD $APPEND"
kexec -l /tmp/kernel $INITRD $APPEND
kexec -e
EOF
# -- end pxeboot script