# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni
# Distributed under the GPL v2
+ 21 Aug 2008; Andrew Gaffney <agaffney@gentoo.org> gen_cmdline.sh,
+ gen_determineargs.sh, genkernel, genkernel.conf:
+ Remove broken grub code
+
07 Aug 2008; Andrew Gaffney <agaffney@gentoo.org> gen_initramfs.sh:
Only append splash portion to initramfs if SPLASH is set
echo " --mdadm Copy /etc/mdadm.conf to initramfs"
echo " --dmraid Include DMRAID support"
echo " --slowusb Enables extra pauses for slow USB CD boots"
- echo " --bootloader=grub Add new kernel to GRUB configuration"
echo " --linuxrc=<file> Specifies a user created linuxrc"
echo " --disklabel Include disk label and uuid support in your"
echo " ramdisk"
CMD_DMRAID=1
print_info 2 "CMD_DMRAID: ${CMD_DMRAID}"
;;
- --bootloader=*)
- CMD_BOOTLOADER=`parse_opt "$*"`
- print_info 2 "CMD_BOOTLOADER: ${CMD_BOOTLOADER}"
- ;;
--loglevel=*)
CMD_LOGLEVEL=`parse_opt "$*"`
LOGLEVEL="${CMD_LOGLEVEL}"
DMRAID_BINCACHE=`arch_replace "${DMRAID_BINCACHE}"`
BLKID_BINCACHE=`arch_replace "${BLKID_BINCACHE}"`
-
- if [ "${CMD_BOOTLOADER}" != '' ]
- then
- BOOTLOADER="${CMD_BOOTLOADER}"
-
- if [ "${CMD_BOOTLOADER}" != "${CMD_BOOTLOADER/:/}" ]
- then
- BOOTFS=`echo "${CMD_BOOTLOADER}" | cut -f2- -d:`
- BOOTLOADER=`echo "${CMD_BOOTLOADER}" | cut -f1 -d:`
- fi
- fi
-
if [ "${NO_KERNEL_SOURCES}" != "1" ]
then
if [ ! -d ${KERNEL_DIR} ]
source ${GK_SHARE}/gen_initramfs.sh || gen_die "Could not read ${GK_SHARE}/gen_initramfs.sh"
source ${GK_SHARE}/gen_moddeps.sh || gen_die "Could not read ${GK_SHARE}/gen_moddeps.sh"
source ${GK_SHARE}/gen_package.sh || gen_die "Could not read ${GK_SHARE}/gen_package.sh"
-source ${GK_SHARE}/gen_bootloader.sh || gen_die "Could not read ${GK_SHARE}/gen_bootloader.sh"
TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$
if [ "${BUILD_KERNEL}" -eq '1' ]
then
- set_bootloader
print_info 1 ''
print_info 1 "Kernel compiled successfully!"
print_info 1 ''
# Use Color output in Genkernel?
USECOLOR="yes"
-# Add new kernel to grub?
-# BOOTLOADER="grub"
-
# Clear build cache dir
# CLEAR_CACHE_DIR="yes"