Skip to content

Commit

Permalink
Add searching initrd images of format ${initrdname}${suf}-${kernel}
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Mikhalicin <[email protected]>
  • Loading branch information
lo1ol committed Aug 23, 2021
1 parent 3cfc3f9 commit 09bd9a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions make-bootloader.in
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ bootloader_update_config()
initrd="$initrd_name${kver:+-$kver}$suf"
break 2
fi

if [ -f "$bootdir/$initrd_name$suf${kver:+-$kver}" ]; then
initrd=$initrd_name$suf${kver:+-$kver}
break 2
fi
done
done

Expand Down

0 comments on commit 09bd9a5

Please sign in to comment.