kexec: add reboot message

This commit is contained in:
Jörg Thalheim 2022-09-05 05:35:55 +00:00
parent b630b3fb37
commit 2913702b16

View file

@ -40,6 +40,7 @@
rm -r "$INITRD_TMP"
# Disconnect our background kexec from the terminal
echo "machine will boot into nixos in in 6s..."
if [[ -e /dev/kmsg ]]; then
# this makes logging visible in `dmesg`, or the system consol or tools like journald
exec > /dev/kmsg 2>&1