From: Raphaƫl Hertzog Date: Thu, 12 Jan 2017 17:39:31 +0000 (+0100) Subject: Only copy /etc/live/boot if it exists X-Git-Tag: debian/1%20170112^0 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=aac901419ae2e09a167135cd80bc58fdb66cc2c1 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. --- 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*