From 05d628313dd7fadf7311bf53cf3e337d39add417 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Sun, 21 Jul 2019 22:00:46 +0700 Subject: [PATCH] build-vm: if make-initrd failed then exit --- features.in/build-vm/image-scripts.d/07-kernel | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features.in/build-vm/image-scripts.d/07-kernel b/features.in/build-vm/image-scripts.d/07-kernel index 6ffcc501..64d4df37 100755 --- a/features.in/build-vm/image-scripts.d/07-kernel +++ b/features.in/build-vm/image-scripts.d/07-kernel @@ -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 ||: