[ "${KERNEL_MAKE_DIRECTIVE}" == 'zImage.initrd' ] ||
[ "${KERNEL_MAKE_DIRECTIVE_2}" == 'zImage.initrd' ] &&
- cp ${TEMP}/initramfs-${KV} ${KERNEL_DIR}/arch/${ARCH}/boot/images/ramdisk.image.gz
+ cp ${TMPDIR}/initramfs-${KV} ${KERNEL_DIR}/arch/${ARCH}/boot/images/ramdisk.image.gz
}
clear_cpio_dir(){
cp "${TEMP}/kernelz-${ARCH}-${KV}" "/boot/kernelz-${KNAME}-${ARCH}-${KV}" || gen_die 'Could not copy the kernel binary to /boot!'
fi
cp "${TEMP}/System.map-${ARCH}-${KV}" "/boot/System.map-${KNAME}-${ARCH}-${KV}" || gen_die 'Could not copy System.map to /boot!'
+}
gen_kerncache_extract_modules()
{
fi
if [ "${NFSROOT}" != '' ]; then
- if [ "${CDROOT}" != '' ]; then
- good_msg "Attempting to mount NFS CD image on ${NFSPATH}"
+ if [ "${CDROOT}" != '0' ]; then
+ good_msg "Attempting to mount NFS CD image on ${NFSROOT}"
mount -t nfs -o ro,nolock,rsize=1024,wsize=1024 ${NFSROOT} ${NEW_ROOT}/mnt/cdrom
if [ "$?" = '0' ]; then
REAL_ROOT="/dev/nfs"
bad_msg "NFS Mounting failed. Is the path corrent ?"
fi
else
- good_msg "Attemping to mount NFS root on ${NFSPATH}"
+ good_msg "Attemping to mount NFS root on ${NFSROOT}"
mount -t nfs -o ro,nolock,rsize=1024,wsize=1024 ${NFSROOT} ${NEW_ROOT}
if [ "$?" = '0' ]; then
REAL_ROOT="/dev/nfs"
then
if [ -e '/bin/vgscan' -a -e '/bin/vgchange' ]
then
+ for dev in ${RAID_DEVICES}
+ do
+ setup_md_device "${dev}"
+ done
+
good_msg "Scanning for Volume Groups"
/bin/vgscan --ignorelockingfailure --mknodes 2>/dev/null
good_msg "Activating Volume Groups"
}
setup_md_device() {
- [ -z "${REAL_ROOT}" ] && return # LiveCD
+ local device
+
+ [ -z "$1" ] && device="${REAL_ROOT}" || device="$1"
+ [ -z "${device}" ] && return # LiveCD
- if [ `echo ${REAL_ROOT}|sed -e 's#\(/dev/md\)[[:digit:]]\+#\1#'` = "/dev/md" ]
+ if [ `echo ${device}|sed -e 's#\(/dev/md\)[[:digit:]]\+#\1#'` = "/dev/md" ]
then
good_msg 'Detected real_root as a md device. Setting up the device node...'
- MD_NUMBER=`echo ${REAL_ROOT}|sed -e 's#/dev/md\([[:digit:]]\+\)#\1#'`
+ MD_NUMBER=`echo ${device}|sed -e 's#/dev/md\([[:digit:]]\+\)#\1#'`
if [ ! -e /dev/md${MD_NUMBER} ]
then
mknod /dev/md${MD_NUMBER} b 9 ${MD_NUMBER} >/dev/null 2>&1
;;
# /dev/md
+ lvmraid\=*)
+ RAID_DEVICES="${RAID_DEVICES} `parse_opt ${x}`"
+ ;;
+
part\=*)
MDPART=`parse_opt "${x}"`
;;
# Genkernel v3
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
-GK_V='3.2.12'
+GK_V='3.3.1'
TMPDIR='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$
trap_cleanup(){
- #Call exit code of 1 for failure
+ # Call exit code of 1 for failure
cleanup
exit 1
}
[ "${GENSPLASH}" -eq '1' ] && print_info 1 "add \"vga=791 splash=silent,theme:${GENSPLASH_THEME} CONSOLE=/dev/tty1 quiet\" if you use a gensplash framebuffer ]"
[ "${BOOTSPLASH}" -eq '1' ] && print_info 1 'add "vga=791 splash=silent" if you use a bootsplash framebuffer'
[ "${LVM2}" -eq '1' ] && print_info 1 'add "dolvm2" for lvm2 support'
- [ "${EVMS2}" -eq '1' ] && print_info 1 'add "doevms" for evms support'
+ [ "${EVMS2}" -eq '1' ] && print_info 1 'add "doevms2" for evms support'
[ "${DMRAID}" -eq '1' ] && print_info 1 'add "dodmraid" for dmraid support'
[ "${DMRAID}" -eq '1' ] && print_info 1 ' or "dodmraid=<additional options>"'
[ "${UNIONFS}" -eq '1' ] && print_info 1 'add "unionfs" for unionfs support'
-.TH GENKERNEL "8" "July 2005" "genkernel 3.2.0" "Gentoo Linux"
+.TH GENKERNEL "8" "July 2005" "genkernel 3.3" "Gentoo Linux"
.SH NAME
genkernel \- the Gentoo Linux automatic kernel compiler.
.SH SYNOPSIS
existing bug documents the same issue before opening a new bug. Issues
for kernel sources not supported by Gentoo should go to their relevant
authors.
+.SH AUTHORS
+Tim Yamin
+.B <plasmaroo@gentoo.org>
+.sp
+Eric Edgar
+.B <rocket@gentoo.org>
+.sp
+NFS Support by Thomas Seiler
+.B <thseiler@gmail.com>
UTILS_LD=ld
COMPRESS_INITRD=yes
-
+GENERATE_Z_IMAGE=1