diff options
-rw-r--r-- | ChangeLog.md | 6 | ||||
-rw-r--r-- | efi-sync | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog.md b/ChangeLog.md index 777eee4..3af1040 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [0.2.1] - 2024-08-13 + +### Fixed + + - Fix how the kernel version is sourced to support recent changes in Slackware Current. + ## [0.2.0-alpha] - 2024-04-29 ### Added @@ -51,12 +51,13 @@ require_root () { fi } + efi_install () { require_root require_efi load_config - KERNEL_VERSION="$(basename $(realpath "$KERNEL") | sed -E 's/vmlinuz-(.*)-(.*)/\2/')" + KERNEL_VERSION="$(file $(realpath "$KERNEL") | sed -E 's/.* version (\S*) .*/\1/')" if ! cp -H "$KERNEL" "${EFI_KERNEL}"; then log "Failed to copy '${KERNEL}' into your EFI at '${EFI_KERNEL}'." |