summaryrefslogtreecommitdiff
path: root/scripts/build/binary_linux-image
diff options
context:
space:
mode:
authorBalint Reczey <balint.reczey@canonical.com>2017-10-13 19:08:53 +0200
committerRaphaël Hertzog <hertzog@debian.org>2017-11-20 22:09:49 +0100
commitdae94463e4c2df83e6a31d58b82c6502f70190a1 (patch)
treecb119edc49be8914f3e313dcedfe39a762f5f26c /scripts/build/binary_linux-image
parent1f1dce740ec271b21d88fcad7c7b40ea2e57a2d2 (diff)
downloadvyos-live-build-dae94463e4c2df83e6a31d58b82c6502f70190a1.tar.gz
vyos-live-build-dae94463e4c2df83e6a31d58b82c6502f70190a1.zip
Don't fail when initramfs is not used
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Diffstat (limited to 'scripts/build/binary_linux-image')
-rwxr-xr-xscripts/build/binary_linux-image2
1 files changed, 1 insertions, 1 deletions
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)