diff --git a/systemd-boot/add-kernel b/systemd-boot/add-kernel index d461598..d702fc6 100755 --- a/systemd-boot/add-kernel +++ b/systemd-boot/add-kernel @@ -18,6 +18,9 @@ err=0 if [ -x /usr/bin/sdbootutil ] ; then version="$1" + if [ ! -x /lib/modules/$version/vmlinuz ] ; then + ln -s /boot/vmlinuz-$version /lib/modules/$version/vmlinuz + fi # kernel and initrd files are ignored, as sdbootutil is the one that # will find the correct kernel file from the snapshots, and will # create the correct initrd for the system