2 # Allow kexecing to kernel in rootfs
4 if [ -n "$BOOT_ROOT" -a -f "$BOOT_ROOT/boot/zImage" ]; then
5 if ! expr "$CMDLINE" : '.*nokexec'; then
6 echo "Kernel found in rootfs:"
7 ls -l "$BOOT_ROOT/boot/zImage"
9 if [ -f "$BOOT_ROOT/boot/initramfs.bin" ]; then
10 echo "Initramfs found in rootfs:"
11 ls -l "$BOOT_ROOT/boot/initramfs.bin"
12 initramfs="--initrd=$BOOT_ROOT/boot/initramfs.bin"
14 echo /usr/sbin/kexec -f "$BOOT_ROOT/boot/zImage" $initramfs --command-line="$CMDLINE nokexec"
16 /usr/sbin/kexec -f "$BOOT_ROOT/boot/zImage" $initramfs --command-line="$CMDLINE nokexec"