add convenient script to reboot into linux (#2)

This commit is contained in:
John Törnblom
2026-05-17 23:46:38 +02:00
committed by GitHub
parent 0a6c6aefa7
commit 1bb9ed410b

10
ps5-linux-warm-reboot.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
CMDLINE=$(cat /boot/efi/cmdline.txt)
VMLINUZ=/boot/efi/bzImage
INITRD=/boot/efi/initrd.img
kexec -l "$VMLINUZ" --initrd="$INITRD" --append="$CMDLINE"
systemctl kexec -i