Skip to content

Commit f6a0c08

Browse files
committed
update pkg
1 parent 6037622 commit f6a0c08

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

debian/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
kboot (1.0.0) nitrux; urgency=medium
22

33
* Make kboot more robust, safer, and validate variables.
4+
* Adds error checking to ensure kexec stops immediately if the kernel fails to load.
45

56
-- Uri Herrera <uri_herrera@nxos.org> Wed, 10 Dec 2025 07:48:00 -0500
67

usr/bin/kboot

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ set -eu
3333

3434
TOOL_NAME="Kernel Boot"
3535
TOOL_SHRT_NAME="kboot"
36-
TOOL_VERSION="0.0.9"
36+
TOOL_VERSION="1.0.0"
3737
VENDOR='Nitrux Latinoamericana S.C.'
3838
FECHA=$(date +%Y)
3939

@@ -276,7 +276,9 @@ fi
276276
puts_info "Loading kernel: $KEXEC_VMLINUZ"
277277
puts_info "With initrd: $KEXEC_INITRD"
278278

279-
root_kexec -l "$KEXEC_VMLINUZ" --initrd="$KEXEC_INITRD" --append="$KERNEL_PARAMETERS"
279+
root_kexec -l "$KEXEC_VMLINUZ" --initrd="$KEXEC_INITRD" --append="$KERNEL_PARAMETERS" || exit 1
280+
281+
puts_success "Kernel loaded successfully. Switching now..."
280282
root_kexec -e
281283
;;
282284
*)

0 commit comments

Comments
 (0)