Skip to content

Commit

Permalink
Update initramfs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftydinar authored Dec 13, 2024
1 parent 0343c65 commit 31d5cb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions files/scripts/initramfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ set -euo pipefail

KERNEL_MODULES_PATH="/usr/lib/modules"
readarray -t QUALIFIED_KERNEL < <(find "${KERNEL_MODULES_PATH}" -mindepth 1 -maxdepth 1 -type d -printf "%f\n")
INITRAMFS_IMAGE_FILENAME="initramfs.img"
INITRAMFS_IMAGE="${KERNEL_MODULES_PATH}/${QUALIFIED_KERNEL[*]}/${INITRAMFS_IMAGE_FILENAME}"
INITRAMFS_IMAGE="${KERNEL_MODULES_PATH}/${QUALIFIED_KERNEL[*]}/initramfs.img"

if [[ "${#QUALIFIED_KERNEL[@]}" -gt 1 ]]; then
echo "ERROR: There are several versions of kernel's initramfs"
Expand Down

0 comments on commit 31d5cb6

Please sign in to comment.