Added a patch from Joshua Kinard <kumba@gentoo.org> to clean up the Pegasos hacks in genkernel. This is from bug #193826. This is genkernel 3.4.9_pre7 for testing.
cp "${KERNEL_BINARY}""${TEMP}/minkernpackage/kernel-${KV}"|| gen_die 'Could not the copy kernel for the min kernel package!'
cp ".config""${TEMP}/minkernpackage/config-${ARCH}-${KV}"|| gen_die 'Could not the copy kernel config for the min kernel package!'
if["${KERNEL_BINARY_2}" !='' -a "${GENERATE_Z_IMAGE}"='1']
then
cp "${KERNEL_BINARY_2}""${TEMP}/minkernpackage/kernelz-${KV}"|| gen_die "Could not copy the kernelz for the min kernel package"
fi
cd"${KERNEL_DIR}"
cp "${KERNEL_BINARY}""${TEMP}/minkernpackage/kernel-${KV}"|| gen_die 'Could not the copy kernel for the min kernel package!'
cp ".config""${TEMP}/minkernpackage/config-${ARCH}-${KV}"|| gen_die 'Could not the copy kernel config for the min kernel package!'
if["${ENABLE_PEGASOS_HACKS}"='yes']
then
cp "${KERNEL_BINARY_2}""${TEMP}/minkernpackage/kernelz-${KV}"|| gen_die "Could not copy the kernelz for the min kernel package"
fi
fi
if["${GENERATE_Z_IMAGE}" !='1' ]
if["${ENABLE_PEGASOS_HACKS}" !='yes' ]
then
if["${KERN_24}" !='1']
then
["${BUILD_INITRD}" -ne 0]&&{ cp "${TMPDIR}/initramfs-${KV}""${TEMP}/minkernpackage/initramfs-${ARCH}-${KV}"|| gen_die 'Could not copy the initramfs for the kernel package!';}
else
["${BUILD_INITRD}" -ne 0]&&{ cp "${TMPDIR}/initrd-${KV}""${TEMP}/minkernpackage/initrd-${ARCH}-${KV}"|| gen_die 'Could not copy the initrd for the kernel package!';}
fi
if["${KERN_24}" !='1']
then
["${BUILD_INITRD}" -ne 0]&&{ cp "${TMPDIR}/initramfs-${KV}""${TEMP}/minkernpackage/initramfs-${ARCH}-${KV}"|| gen_die 'Could not copy the initramfs for the kernel package!';}
else
["${BUILD_INITRD}" -ne 0]&&{ cp "${TMPDIR}/initrd-${KV}""${TEMP}/minkernpackage/initrd-${ARCH}-${KV}"|| gen_die 'Could not copy the initrd for the kernel package!';}