echo
echo "Available Actions: "
echo " all Build all steps"
+ echo " bzImage Build only the kernel"
echo " kernel Build only the kernel and modules"
echo " initrd Build only the initrd"
echo
;;
all)
BUILD_KERNEL=1
+ BUILD_MODULES=1
BUILD_INITRD=1
;;
initrd)
;;
kernel)
BUILD_KERNEL=1
+ BUILD_MODULES=1
BUILD_INITRD=0
;;
+ bzImage)
+ BUILD_KERNEL=1
+ BUILD_MODULES=0
+ BUILD_INITRD=1
+ CMD_NOINITRDMODULES=1
+ print_info 2 "CMD_NOINITRDMODULES: $CMD_NOINITRDMODULES"
+ ;;
--help)
longusage
exit 1
#!/bin/bash
# Genkernel v3
-GK_V='3.2.0_pre5'
+GK_V='3.2.0_pre9'
TEMP='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
trap cleanup SIGHUP SIGQUIT SIGINT SIGTERM SIGKILL
BUILD_KERNEL=0
BUILD_INITRD=0
+BUILD_MODULES=0
# Parse all command line options...
Options=$* # Save for later
[ "${GENERATE_Z_IMAGE}" = '' ] && compile_kernel
# Compile modules
- compile_modules
+ if [ ${BUILD_MODULES} -eq 1 ]
+ then
+ compile_modules
+ fi
if [ ${SAVE_CONFIG} -eq 1 ]
then
-.TH GENKERNEL "8" "November 2004" "genkernel 3.1.0c" "Gentoo Linux"
+.TH GENKERNEL "8" "June 2005" "genkernel 3.2.0" "Gentoo Linux"
.SH NAME
genkernel \- the Gentoo Linux automatic kernel compiler.
.SH SYNOPSIS
The initrd scripts have limited support for network booting.
This is activated if the ip=<...> kernel parameter was given. Please refer to the genkernel guide at http://www.gentoo.org/doc/en/genkernel.xml for more information.
-The initrd scripts will extract any *.tar.gz files found in the \fB/add\fR directory of the livecd into the root filesystem during boot. This way its easy to extend a netbooted livecd i.e. with custom tools, or other kernel modules.
+The initrd scripts will extract any *.tar.gz files found in the \fB/add\fR directory of the livecd into the root filesystem during boot. This way it is easy to extend a netbooted LiveCD i.e. add custom tools, or other kernel modules.
.SH REPORTING BUGS
If you believe you have found a bug in the genkernel scripts, then please
file a bug on the Gentoo Linux Bugzilla: