>> 3.3.1. Fix #100144, #100169, #100583.
authorTim Yamin <plasmaroo@gentoo.org>
Thu, 28 Jul 2005 13:49:58 +0000 (13:49 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Thu, 28 Jul 2005 13:49:58 +0000 (13:49 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@281 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_initramfs.sh
gen_package.sh
generic/initrd.scripts
generic/linuxrc
genkernel
genkernel.8
pkg/busybox-1.00-rt-mdstart.plasmaroo.tar.bz2
ppc/config.sh

index 0fa363a02bc3fae4f956637ab062b1f6d25c8a52..e438b76e822233832aa8a1667f6c4a27d0be12ba 100644 (file)
@@ -495,7 +495,7 @@ merge_initramfs_cpio_archives(){
 
        [ "${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(){
index d69f563bbdbe03e3004fafaa7df0029856d73e04..f892b159c454c42b763c86e06781aaff236aa954 100644 (file)
@@ -90,6 +90,7 @@ gen_kerncache_extract_kernel()
                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()
 {
index 42bd1e527789856b883f5ad992fd0dd7246393d0..730c80382e880a84cab38a6c2169a9b9236c50c2 100644 (file)
@@ -162,8 +162,8 @@ findnfsmount() {
                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"
@@ -171,7 +171,7 @@ findnfsmount() {
                                        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"
@@ -440,6 +440,11 @@ startVolumes() {
     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"
@@ -510,12 +515,15 @@ cdupdate() {
 }
 
 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
index 3092517f533a4f8352b153a92e99ee196ee41d80..a0b59af02c032afa8bbf6bd2299870fa1d458891 100644 (file)
@@ -153,6 +153,10 @@ do
          ;;
 
       # /dev/md
+      lvmraid\=*)
+         RAID_DEVICES="${RAID_DEVICES} `parse_opt ${x}`"
+         ;;
+
       part\=*)
           MDPART=`parse_opt "${x}"`
           ;;
index 0f5568cd4a2710e6c87f8238f2ab4e1749f6fa86..4d52d67447597093aee96a40111d0b3b61c8e201 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -2,7 +2,7 @@
 # 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.
@@ -28,7 +28,7 @@ source ${GK_BIN}/gen_bootloader.sh || gen_die "Could not read ${GK_BIN}/gen_boot
 TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$
 
 trap_cleanup(){
-       #Call exit code of 1 for failure
+       # Call exit code of 1 for failure
        cleanup
        exit 1
 }
@@ -381,7 +381,7 @@ then
        [ "${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'
index 5585f978e087e5bd0de740939c98c0c1f617618f..874ae603539cf4a2c82af98f2aa50f499a9edf5d 100644 (file)
@@ -1,4 +1,4 @@
-.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
@@ -272,3 +272,12 @@ and should be assigned to kernel@gentoo.org. Please check if an
 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>
index afe53a132a7de0d371f3c1179dd4c9de54d5c051..1fb41c7c92371f778a015d24a28a9b4c2657d10c 100644 (file)
Binary files a/pkg/busybox-1.00-rt-mdstart.plasmaroo.tar.bz2 and b/pkg/busybox-1.00-rt-mdstart.plasmaroo.tar.bz2 differ
index 81c70f9a5b36a510af0b25d0a4353bb5ac7cc90f..39ae81eefee023bae46b3e01f1e6ef5015aee582 100644 (file)
@@ -24,4 +24,4 @@ UTILS_AS=as
 UTILS_LD=ld
 
 COMPRESS_INITRD=yes
-
+GENERATE_Z_IMAGE=1