Commit a8b1f11f authored by Anton Midyukov's avatar Anton Midyukov Committed by Michael Shigorin

build-vm: handle multiple kernels either again

KFLAVOURS can describe more than one kernel, get iterator back. Fixes: 27674e29
parent d135272a
......@@ -12,10 +12,12 @@ kver="$(rpm -qa 'kernel-image*' \
cd /boot
make-initrd -N -k "$kver" AUTODETECT= \
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 ||:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment