From d73c5d56245abaf723a322d450f56432f9f4574d Mon Sep 17 00:00:00 2001 From: Kristian Klausen Date: Tue, 5 Jul 2016 21:39:54 +0200 Subject: [PATCH] Check /etc/live/boot.conf exist before trying copy Last commit (b98d289f42) wasn't tested properly. If /etc/live/boot.conf didn't existed initramfs generating would fail, now we test if it exist. We don't need to test if /etc/live/boot exist, as it is created by live-boot.postinst. --- backend/initramfs-tools/live.hook | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook index 8337a64..8b763b2 100755 --- a/backend/initramfs-tools/live.hook +++ b/backend/initramfs-tools/live.hook @@ -34,7 +34,11 @@ mkdir -p "${DESTDIR}/lib/live" cp -a /lib/live/boot "${DESTDIR}/lib/live" mkdir -p "${DESTDIR}/etc/live" -cp -a /etc/live/boot.conf /etc/live/boot "${DESTDIR}/etc/live" +if [ -e /etc/live/boot.conf ] +then + cp -a /etc/live/boot.conf "${DESTDIR}/etc/live" +fi +cp -a /etc/live/boot "${DESTDIR}/etc/live" # klibc dependencies for FILE in /lib/libacl* /lib/libblkid* /lib/libuuid* /lib/libdevmapper* /lib/libattr* -- 2.1.4