From: Marco Amadori Date: Tue, 16 Sep 2008 08:55:22 +0000 (+0200) Subject: Add real cpio to initramfs for snapshot's uses. X-Git-Tag: debian/2.0.15-1~434 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=4a165b794d37cf495f2c4d0213caba38eb8622d7;p=live-boot-grml.git Add real cpio to initramfs for snapshot's uses. --- diff --git a/hooks/live b/hooks/live index dea7f0c..f2984f4 100755 --- a/hooks/live +++ b/hooks/live @@ -128,6 +128,15 @@ fi # Program: md5sum copy_exec /usr/bin/md5sum /bin +# 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