Take into account the fact that udevadm is now in /bin and no longer in /sbin
[live-boot-grml.git] / backend / initramfs-tools / live.hook
index 09167ec..1ce922d 100755 (executable)
@@ -28,7 +28,7 @@ fi
 [ "${QUIET}" ] || echo -n " core"
 
 mkdir -p "${DESTDIR}/bin"
-cp -a /bin/live-boot /lib/live/boot "${DESTDIR}/bin"
+cp -a /bin/live-boot "${DESTDIR}/bin"
 
 mkdir -p "${DESTDIR}/lib/live"
 cp -a /lib/live/boot "${DESTDIR}/lib/live"
@@ -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*
@@ -170,10 +173,10 @@ then
 fi
 
 # Program: udev
-if [ -x /sbin/udevadm ]
+if [ -x /bin/udevadm ]
 then
        [ "${QUIET}" ] || echo -n " udev"
-       copy_exec /sbin/udevadm
+       copy_exec /bin/udevadm
 fi
 
 # Program: wget