build-vm: if make-initrd failed then exit

This commit is contained in:
Anton Midyukov 2019-07-21 22:00:46 +07:00 committed by Michael Shigorin
parent 27674e297b
commit 05d628313d

View File

@ -15,7 +15,8 @@ echo "$kver" > .origver # for tar2fs
make-initrd -N -k "$kver" AUTODETECT= \
FEATURES+="$GLOBAL_VM_INITRDFEATURES" \
MODULES_ADD+="$GLOBAL_VM_INITRDMODULES"
MODULES_ADD+="$GLOBAL_VM_INITRDMODULES" \
|| { echo "** Error: make-initrd failed" >&2; exit 1; }
# NB: e2k kernel builds "image" instead of "vmlinuz"
[ -f vmlinuz-$kver ] && ln -s vmlinuz-$kver vmlinuz ||: