Version 2.1
[febootstrap.git] / febootstrap-to-initramfs.sh
index 6dfc3f9..93d415a 100755 (executable)
@@ -32,9 +32,11 @@ if [ ! -f fakeroot.log -a $(id -u) -ne 0 ]; then
     exit 1
 fi
 
+set -e
+
 if [ -f fakeroot.log ]; then
     fakeroot -i fakeroot.log \
-    sh -c 'find -not -name fakeroot.log -a -print0 | cpio -o0c | gzip --best'
+    sh -c 'find -not -name fakeroot.log -a -print0 | cpio -o -0 -H newc | gzip --best'
 else
-    find -not -name fakeroot.log -a -print0 | cpio -o0c | gzip --best
+    find -not -name fakeroot.log -a -print0 | cpio -o -0 -H newc | gzip --best
 fi