about summary refs log tree commit diff
path: root/shutdown.d/90-kexec.sh
blob: 8b3eb93f3f2b1ded798c1e4287d377dcedbfe190 (plain) (blame)
1
2
3
4
5
6
7
if [ -z "$VIRTUALIZATION" ]; then
    if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then
        msg "Triggering kexec..."
        kexec -e 2>/dev/null
        # not reached when kexec was successful.
    fi
fi