X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-live;h=9c55ab6f5ce07be5517cfaa22b31f3f39edc307f;hb=8f8fae2cca04b12d1158062bec377a0f8b9c6673;hp=877bb1e7100a3135e6f7ddae5680080a30284dc3;hpb=ed027d61f1bbc2ba3d75545f63ed4bb4cddcaa77;p=grml-live.git diff --git a/grml-live b/grml-live index 877bb1e..9c55ab6 100755 --- a/grml-live +++ b/grml-live @@ -391,6 +391,7 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then INITRD="$(ls $CHROOT_OUTPUT/boot/initrd* 2>/dev/null| grep -v '.bak$' | sort -r | head -1)" if [ -n "$INITRD" ] ; then cp $INITRD "$BUILD_OUTPUT"/boot/isolinux/initrd.gz + find $CHROOT_OUTPUT/boot/ -name initrd\*.bak -exec rm {} \; else log "No initrd found inside $CHROOT_OUTPUT/boot/ - Exiting" eerror "No initrd found inside $CHROOT_OUTPUT/boot/ - Exiting" ; eend 1 @@ -398,7 +399,7 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then fi KERNEL_IMAGE="$(ls $CHROOT_OUTPUT/boot/vmlinuz* 2>/dev/null | sort -r | head -1)" - if [ -n "$INITRD" ] ; then + if [ -n "$KERNEL_IMAGE" ] ; then cp "$KERNEL_IMAGE" "$BUILD_OUTPUT"/boot/isolinux/linux26 else log "No kernel found inside $CHROOT_OUTPUT/boot/ - Exiting"