From aac901419ae2e09a167135cd80bc58fdb66cc2c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Hertzog?= Date: Thu, 12 Jan 2017 18:39:31 +0100 Subject: [PATCH] Only copy /etc/live/boot if it exists Even though /etc/live/boot is created in the postinst, that directory is not guaranteed to exist when the initramfs is generated. It might be generated when the kernel is configured before live-boot has been configured. --- backend/initramfs-tools/live.hook | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook index 09167ec..54a566f 100755 --- a/backend/initramfs-tools/live.hook +++ b/backend/initramfs-tools/live.hook @@ -38,7 +38,10 @@ 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" +if [ -e /etc/live/boot ] +then + cp -a /etc/live/boot "${DESTDIR}/etc/live" +fi # klibc dependencies for FILE in /lib/libacl* /lib/libblkid* /lib/libuuid* /lib/libdevmapper* /lib/libattr* -- 2.1.4