Skip to content

Commit

Permalink
support kernels without initrd
Browse files Browse the repository at this point in the history
If the installed kernel has no initrd support, skip the image creation.
  • Loading branch information
teknoraver committed Jul 19, 2024
1 parent 5d2bda4 commit ef15caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.d/50-dracut.install
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ ret=0

case "$COMMAND" in
add)
# This kernel doesn't support initramfs, so don't generate one
if [[ -f $BOOT_DIR_ABS/config-$KERNEL_VERSION ]] \
&& ! grep -qx CONFIG_BLK_DEV_INITRD=y "$BOOT_DIR_ABS/config-$KERNEL_VERSION"; then
exit 0
fi
if [[ $IMAGE == "uki.efi" ]]; then
IMAGE_PREGENERATED=${KERNEL_IMAGE%/*}/uki.efi
else
Expand Down

0 comments on commit ef15caa

Please sign in to comment.