build-vm: handle multiple kernels either again
KFLAVOURS can describe more than one kernel, get iterator back.
Fixes: 27674e297b
This commit is contained in:
parent
d135272a2d
commit
a8b1f11f2e
@ -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 ||:
|
||||
|
Loading…
Reference in New Issue
Block a user