X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap-to-initramfs.sh;h=93d415a2d1d8d595d373862719a1da0c8af51070;hb=036bba6ab3ca64424a35be4ec28e572265644cf9;hp=6dfc3f9a4310c3a43584a33eb2a74cda00fe55ca;hpb=6e19bf07700264ef7006f778cd555354e0b42fca;p=febootstrap.git diff --git a/febootstrap-to-initramfs.sh b/febootstrap-to-initramfs.sh index 6dfc3f9..93d415a 100755 --- a/febootstrap-to-initramfs.sh +++ b/febootstrap-to-initramfs.sh @@ -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