* Support kernel upgrades via according /etc/kernel-img.conf configuration.
* Set hostname in instsoft-hook already.
* Add user (grml) to all relevant groups.
- * Improve initrd+kernel copy process (ignore .bak files and
- copy always exactly one image).
+ * Improve initrd+kernel copy process: ignore .bak files (and get rid
+ of them) and copy always exactly one image.
* Add new packages to GRML_FULL:
- etckeeper
- hdapsd
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
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"