Adding upstream version 3.0~a34.
[live-boot-grml.git] / backends / initramfs-tools / live.hook
index 4d01777..7ead725 100755 (executable)
@@ -42,7 +42,7 @@ fi
 
 # Handling live-boot
 
-if [ ! -e /usr/share/live-boot ]
+if [ ! -e /lib/live/boot ]
 then
        echo "W: live-boot-initramfs-tools (backend) installed without live-boot,"
        echo "W: this initramfs will *NOT* have live support."
@@ -54,9 +54,6 @@ fi
 mkdir -p "${DESTDIR}/lib/live"
 cp -a /lib/live/boot.sh /lib/live/boot "${DESTDIR}/lib/live"
 
-# Directories
-mkdir -p "${DESTDIR}"/lib/live-boot
-
 # klibc dependencies
 for FILE in /lib/libacl* /lib/libblkid* /lib/libuuid* /lib/libdevmapper* /lib/libattr*
 do
@@ -185,15 +182,6 @@ then
        manual_add_modules mtdblock
 fi
 
-# Program: cpio
-# busybox and klibc lacks --no-absolute-filenames and --sparse, needed for snapshots
-if [ -e "${DESTDIR}/bin/cpio" ]
-then
-       # Override already present cpio's, mostly klibc's
-       rm "${DESTDIR}/bin/cpio"
-fi
-copy_exec /bin/cpio /bin
-
 # Program: udev
 if [ -x /sbin/udevadm ]
 then