X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap-supermin-helper.sh;h=d11d82aaba0a84e2d90a43a3d72aa313309a2a56;hb=a1c6fbdf00f249ddaadc733afaa5ac6e8fbcc30e;hp=c2088bf63c500b97e633d10cdac00af513228caf;hpb=76b7711268a6b0c0929952ee261821825589a165;p=febootstrap.git diff --git a/febootstrap-supermin-helper.sh b/febootstrap-supermin-helper.sh index c2088bf..d11d82a 100755 --- a/febootstrap-supermin-helper.sh +++ b/febootstrap-supermin-helper.sh @@ -82,6 +82,12 @@ rm -f "$kernel" "$initrd" arch=$(echo "@host_cpu@" | sed 's/^i.86$/i?86/') kernels=$(ls -1vr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen; ls -1vr /boot/vmlinuz-* 2>/dev/null | grep -v xen) + +if [ -z "$kernels" ]; then + echo "$0: failed to find a suitable kernel" >&2 + exit 1 +fi + for f in $kernels; do b=$(basename "$f") b=$(echo "$b" | sed 's,vmlinuz-,,') @@ -129,4 +135,4 @@ find "$modpath" \( -not -name '*.ko' $whitelist \) -a -print0 | hostfiles=$(readlink -f "$hostfiles") (cd / && ls -1df $(cat "$hostfiles") 2>/dev/null | - cpio --quiet -o -H newc ) >> "$initrd" + cpio -C 65536 --quiet -o -H newc ) >> "$initrd"