diff --git a/features.in/build-vm/image-scripts.d/07-kernel b/features.in/build-vm/image-scripts.d/07-kernel index d8204a1d..d1d7adf9 100755 --- a/features.in/build-vm/image-scripts.d/07-kernel +++ b/features.in/build-vm/image-scripts.d/07-kernel @@ -12,10 +12,12 @@ kver="$(rpm -qa 'kernel-image*' \ cd /boot -make-initrd -N -k "$kver" AUTODETECT= \ - FEATURES+="$GLOBAL_VM_INITRDFEATURES" \ - MODULES_ADD+="$GLOBAL_VM_INITRDMODULES" \ - || { echo "** Error: make-initrd failed" >&2; exit 1; } +for KVER in $kver; do + make-initrd -N -k "$KVER" AUTODETECT= \ + FEATURES+="$GLOBAL_VM_INITRDFEATURES" \ + MODULES_ADD+="$GLOBAL_VM_INITRDMODULES" \ + || { echo "** Error: make-initrd failed" >&2; exit 1; } +done # NB: e2k kernel builds "image" instead of "vmlinuz" [ -f vmlinuz-$kver ] && ln -s vmlinuz-$kver vmlinuz ||: