Check /etc/live/boot.conf exist before trying copy
[live-boot-grml.git] / backend / initramfs-tools / live.hook
index 8337a64..8b763b2 100755 (executable)
@@ -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*