Bug#878430: live-build: Don't fail when initramfs is not used
Package: live-build
Version: 1:20170920
Severity: wishlist
Tags: patch
Dear Maintainers,
While current Debian kernels need initramfs to boot it should not be
required to build initramfs
for images created with live-build.
The attached patch fixes the place where image building failed while
testing with initramfs-less kernels in Ubuntu.
Cheers,
Balint
--
Balint Reczey
Debian Developer
From 16b7d6ac5f3ddcd70d3f322f36b6c4012c823db0 Mon Sep 17 00:00:00 2001
From: Balint Reczey <balint.reczey@canonical.com>
Date: Fri, 13 Oct 2017 19:08:53 +0200
Subject: [PATCH] Don't fail when initramfs is not used
---
scripts/build/binary_linux-image | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/build/binary_linux-image b/scripts/build/binary_linux-image
index 6227a241c..12a6304a1 100755
--- a/scripts/build/binary_linux-image
+++ b/scripts/build/binary_linux-image
@@ -70,7 +70,7 @@ mkdir -p "${DESTDIR}"
# Installing linux-image
cp chroot/boot/"${LINUX}"-* "${DESTDIR}"
-cp chroot/boot/initrd.img-* "${DESTDIR}"
+cp chroot/boot/initrd.img-* "${DESTDIR}" 2>&1 || Echo_message "Skip installing missing initrd."
case "${LB_INITRAMFS}" in
live-boot)
--
2.11.0
Reply to: