mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Michael Holzheu
parent
7b84e30471
commit
9259370891
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user