Only copy /etc/live/boot if it exists
[live-boot-grml.git] / backend / initramfs-tools / live.hook
index 09167ec..54a566f 100755 (executable)
@@ -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*