/usr/sbin/genkernel writes the output from its process to /var/log/genkernel.log but uses overwrite (>) instead of append (>>). Reproducible: Always Steps to Reproduce: 1. genkernel 2. cat /var/log/genkernel.log 3. only the last command is logged Actual Results: Expected Results: genkernel should log the entire process to /var/log/genkernel.log I suggest the folowing patch: (i'm not a developer so comments on how to properly submit patches are welcome) ===================================================================== --- /usr/sbin/genkernel 2003-11-13 16:40:28.000000000 +0000 +++ /tmp/genkernel.fix 2003-12-26 13:08:07.433149000 +0000 @@ -205,19 +205,19 @@ ebegin "Running \"make dep\"" make dep >/var/log/genkernel.log 2>&1 ||die; eend ebegin "Running \"make bzImage\"" - make $MAKEOPTS bzImage >/var/log/genkernel.log 2>&1 || die; eend + make $MAKEOPTS bzImage >>/var/log/genkernel.log 2>&1 || die; eend ebegin "Running \"make modules\"" - make $MAKEOPTS modules >/var/log/genkernel.log 2>&1 || die; eend + make $MAKEOPTS modules >>/var/log/genkernel.log 2>&1 || die; eend ebegin "Running \"make modules_install\"" if [ "$PACKAGE" = "yes" ] then install -d ${TEMP}/modules - INSTALL_MOD_PATH="${TEMP}/modules" make modules_install >/var/log/genkernel.log 2>&1 || die; eend + INSTALL_MOD_PATH="${TEMP}/modules" make modules_install >>/var/log/genkernel.log 2>&1 || die; eend mkdir ${TEMP}/genkernel cp -rf ${TEMP}/modules/lib/modules/${KV} ${TEMP}/genkernel rm -rf ${TEMP}/modules else - make modules_install >/var/log/genkernel.log 2>&1 || die; eend + make modules_install >>/var/log/genkernel.log 2>&1 || die; eend fi mount /boot > /dev/null 2>&1 if [ "$LIVECD" = "yes" ] @@ -373,10 +373,10 @@ mv ${TEMP}/kernel-${KV} ${TEMP}/genkernel || die "cannot copy kernel" mv ${TEMP}/initrd-${KV} ${TEMP}/genkernel || die "cannot copy initrd" eend - cp -f /usr/src/linux-${KV}/.config ${TEMP}/genkernel/config >/var/log/genkernel.log 2>&1 + cp -f /usr/src/linux-${KV}/.config ${TEMP}/genkernel/config >>/var/log/genkernel.log 2>&1 cd ${TEMP} ebegin "Copying Kernel package to /kernel-${KV}.tar.bz2" - tar -jcvf /kernel-${KV}.tar.bz2 genkernel >/var/log/genkernel.log 2>&1 || die + tar -jcvf /kernel-${KV}.tar.bz2 genkernel >>/var/log/genkernel.log 2>&1 || die eend rm -rf ${TEMP}/genkernel fi @@ -390,7 +390,7 @@ echo einfo "A detailed log can be found at /var/log/genkernel.log." rm -rf /tmp/KV - umount ${TEMP}/kernel-initrd >/var/log/genkernel.log 2>&1 + umount ${TEMP}/kernel-initrd >>/var/log/genkernel.log 2>&1 rm -rf ${TEMP}/kernel-initrd rm -rf ${TEMP}/${BUSYBOX_DIR} @@ -400,10 +400,10 @@ configuration compile ebegin "Building busybox" -busybox >/var/log/genkernel.log 2>&1 +busybox >>/var/log/genkernel.log 2>&1 eend ebegin "Creating initrd" -initrd >/var/log/genkernel.log 2>&1 +initrd >>/var/log/genkernel.log 2>&1 eend bootsplash buildpkg =====================================================================
patches are always best submitted as attachments ... posting as comments ruins them
we will not be fixing genkernel versions less than 3 this is obviously not from 3.x