From 1bb9ed410b66dbbfcc4b19b7f32a380bc1d7f1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Sun, 17 May 2026 23:46:38 +0200 Subject: [PATCH] add convenient script to reboot into linux (#2) --- ps5-linux-warm-reboot.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ps5-linux-warm-reboot.sh diff --git a/ps5-linux-warm-reboot.sh b/ps5-linux-warm-reboot.sh new file mode 100755 index 0000000..8c9d682 --- /dev/null +++ b/ps5-linux-warm-reboot.sh @@ -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