->3.3.11d. Fix #121616, #128805, #129887, #129910.
authorTim Yamin <plasmaroo@gentoo.org>
Fri, 14 Apr 2006 14:42:43 +0000 (14:42 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Fri, 14 Apr 2006 14:42:43 +0000 (14:42 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@378 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_compile.sh
gen_initramfs.sh
gen_initrd.sh
generic/initrd.scripts
generic/linuxrc
genkernel

index 9b8c02aafd4edfb3df2624c5c6fa5cb18e9ddaa2..2f01f903bb9b7004406b102dd4bbe78fe2def503 100644 (file)
@@ -333,6 +333,7 @@ compile_unionfs_modules() {
                cd "${UNIONFS_DIR}"
                print_info 1 'unionfs modules: >> Compiling...'
                echo "LINUXSRC=${KERNEL_DIR}" >> fistdev.mk
+               echo 'TOPINC=-I$(LINUXSRC)/include' >> fistdev.mk
                echo "MODDIR= /lib/modules/${KV}" >> fistdev.mk
                echo "KERNELVERSION=${KV}" >> fistdev.mk
                # Fix for hardened/selinux systems to have extened attributes
@@ -346,13 +347,11 @@ compile_unionfs_modules() {
 
                if [ "${PAT}" -ge '6' ]
                then
-                       # Setup the kernel sources to compile modules
-                       cd ${KERNEL_DIR}
-                       compile_generic "modules_prepare" kernel
-               
                        cd "${TEMP}"
                        cd "${UNIONFS_DIR}"
-                       compile_generic unionfs.ko kernel
+                       # Compile unionfs module within the unionfs
+                       # environment not within the kernelsrc dir
+                       make unionfs.ko
                else
                        gen_die 'unionfs is only supported on 2.6 targets'
                fi
index e37631346707c8b068935e87b7ccbf36f5cbcb47..5b79fa7378f48a48430b8959a5e65b3d34cadf5b 100644 (file)
@@ -208,6 +208,7 @@ create_lvm2_cpio(){
                fi
                cd ${TEMP}
                mkdir -p "${TEMP}/initramfs-lvm2-temp/bin/"
+               mkdir -p "${TEMP}/initramfs-lvm2-temp/etc/lvm/"
                if [ -e '/sbin/lvm' ] && ldd /sbin/lvm|grep -q 'not a dynamic executable';
                then
                        print_info 1 '          LVM2: Adding support (using local static binaries)...'
@@ -220,7 +221,9 @@ create_lvm2_cpio(){
                                gen_die "Could not extract lvm2 binary cache!";
                        mv ${TEMP}/initramfs-lvm2-temp/sbin/lvm.static ${TEMP}/initramfs-lvm2-temp/bin/lvm ||
                                gen_die 'LVM2 error: Could not move lvm.static to lvm!'
-               fi      
+               fi
+               cp /etc/lvm/lvm.conf "${TEMP}/initramfs-lvm2-temp/etc/lvm/lvm.conf" ||
+                       gen_die 'Could not copy over lvm.conf!'
                cd "${TEMP}/initramfs-lvm2-temp/"
                find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-lvm2-${LVM2_VER}.cpio.gz
                rm -r "${TEMP}/initramfs-lvm2-temp/"
index 4649c932c16f7fed1ab56f10c493f704022002bb..aac951b0184dbbd4750fe95e2f93954e99d2bb5e 100644 (file)
@@ -157,10 +157,6 @@ create_base_initrd_sys() {
                        print_info 1 'LVM2: Adding support (using local static binaries)...'
                        cp /sbin/lvm "${TEMP}/initrd-temp/bin/lvm" ||
                                gen_die 'Could not copy over lvm!'
-                       ln "${TEMP}/initrd-temp/bin/lvm" "${TEMP}/initrd-temp/bin/vgscan" ||
-                               gen_die 'Could not symlink lvm -> vgscan!'
-                       ln "${TEMP}/initrd-temp/bin/lvm" "${TEMP}/initrd-temp/bin/vgchange" ||
-                               gen_die 'Could not symlink lvm -> vgchange!'
                else
                        print_info 1 'LVM2: Adding support (compiling binaries)...'
                        compile_lvm2
@@ -169,11 +165,14 @@ create_base_initrd_sys() {
                                gen_die "Could not extract lvm2 binary cache!";
                        mv ${TEMP}/initrd-temp/bin/lvm.static ${TEMP}/initrd-temp/bin/lvm ||
                                gen_die 'LVM2 error: Could not move lvm.static to lvm!'
-                       for i in vgchange vgscan; do
-                               ln  ${TEMP}/initrd-temp/bin/lvm ${TEMP}/initrd-temp/bin/$i ||
-                                       gen_die "LVM2 error: Could not link ${i}!"
-                       done
-               fi      
+               fi
+               for i in vgchange vgscan; do
+                       ln  ${TEMP}/initrd-temp/bin/lvm ${TEMP}/initrd-temp/bin/$i ||
+                               gen_die "LVM2 error: Could not link ${i}!"
+               done
+               mkdir -p ${TEMP}/initrd-temp/etc/lvm
+               cp /etc/lvm/lvm.conf "${TEMP}/initrd-temp/etc/lvm/lvm.conf" ||
+                       gen_die 'Could not copy over lvm.conf!'
        fi
        
        # EVMS2
index 631431c0fe2a33c7922b173ae347202eb2758035..034e26f8da39ca2ed1f0b62f8c0a4d23b8d0401e 100644 (file)
@@ -404,7 +404,8 @@ setup_keymap() {
                        DEVBIND=1
                        mount -o bind ${NEW_ROOT}/dev /dev
                fi
-       
+               [ ! -e /dev/tty0 ] && ln -s /dev/tty1 /dev/tty0
+
                chooseKeymap
 
                [ "${DEVBIND}" -eq '1' ] && umount /dev
index 28d11c62a6f2226e2bcdb4b0d683a014b1c2b288..a3b65bfd3198acbb14168b341673afe059b3f70b 100644 (file)
@@ -399,7 +399,8 @@ do
                if [ "${REAL_ROOT}" = '/dev/nfs' ]; then
                        findnfsmount
                else
-                       mount -o rw ${REAL_ROOT}  ${NEW_ROOT}
+                       # mount ro so fsck doesn't barf later
+                       mount -o ro ${REAL_ROOT}  ${NEW_ROOT}
                fi
                
                # If mount is successful break out of the loop 
index aac8473c1381e122737c2499ea78c088bd67bbce..edbd01b33b99be3b41230365d3b8ef5dad623008 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -2,7 +2,7 @@
 # Genkernel v3
 
 PATH="/bin:/usr/bin:/sbin:/usr/sbin"
-GK_V='3.3.11c'
+GK_V='3.3.11d'
 
 TMPDIR='/var/tmp/genkernel'
 TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.