fabianishere/udm-kernel-tools

Question: What if the custom kernel crashes

Closed this issue · 1 comments

What will happen if the kernel keeps crashing after enabling udm-autoboot.service? Will it auto disable after a couple failed boots?

The service will refuse to auto-boot if it sensed that the previous boot failed.

To see how this mechanism works, see

bootctl_autoboot() {
while getopts ":h" arg; do
case $arg in
h | *) # Display help.
bootctl_autoboot_usage
exit 0
;;
esac
done
shift $((OPTIND - 1))
if ssh-proxy "test -f /.udm-kernel-tools"; then
echo "Successfully booted into custom kernel.."
# Remove mark to indicate that we are booting into a custom kernel
rm -f /mnt/persistent/.udm-boot-mark
exit 0
elif [ -f /mnt/persistent/.udm-boot-mark ]; then
echo "Custom kernel boot seems to have failed. Aborting..."
exit 1
else
touch /mnt/persistent/.udm-boot-mark
bootctl_boot
fi
}