20 lines
328 B
Bash
20 lines
328 B
Bash
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
init="@init@"
|
|
kernelParams="@kernelParams@"
|
|
|
|
cd "$(dirname "$(readlink -f "$0")")"
|
|
|
|
if ! ./kexec --load ./bzImage \
|
|
--kexec-syscall-auto \
|
|
--initrd=./initrd --no-checks \
|
|
--command-line "init=$init $kernelParams"; then
|
|
echo "kexec failed, dumping dmesg"
|
|
dmesg | tail -n 100
|
|
exit 1
|
|
fi
|
|
|
|
./kexec -e
|