From: Tim Yamin Date: Mon, 12 Jul 2004 21:45:36 +0000 (+0000) Subject: >> 3.0.2c. Added more PCMCIA modules to the x86 module list; and added the bug X-Git-Tag: v3.4.10.902~642 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f47bf5ce5225152bba7d73b475046f729fe6e95b;p=genkernel.git >> 3.0.2c. Added more PCMCIA modules to the x86 module list; and added the bug #52561 patch. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@110 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/gen_funcs.sh b/gen_funcs.sh index 9f6e5bf..74ae3d7 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -211,3 +211,15 @@ has_loop() { return 1 fi } + +isBootRO() +{ + for mo in `grep ' /boot ' /proc/mounts | cut -d ' ' -f 4 | sed -e 's/,/ /'` + do + if [ "x${mo}x" == "xrox" ] + then + return 0 + fi + done + return 1 +} diff --git a/gen_initrd.sh b/gen_initrd.sh index 8a9dcca..93303f1 100644 --- a/gen_initrd.sh +++ b/gen_initrd.sh @@ -117,7 +117,7 @@ create_initrd_modules() { print_info 2 "initrd: >> Searching for modules..." for i in `gen_dep_list` do - mymod=`find /lib/modules/${KV} -name "${i}${MOD_EXT}"` + mymod=`find /lib/modules/${KV} -name "${i}${MOD_EXT}" | head -n 1` if [ -z "${mymod}" ] then print_warning 2 "Warning :: ${i}${MOD_EXT} not found; skipping..." diff --git a/genkernel b/genkernel index 9f3d906..70dfb48 100755 --- a/genkernel +++ b/genkernel @@ -1,7 +1,7 @@ #!/bin/bash # Genkernel v3 -GK_V='3.0.2b' +GK_V='3.0.2c' TEMP='/var/tmp/genkernel' small_die() { @@ -91,6 +91,19 @@ then print_warning 1 ' Run ``mount /boot`` to mount it!' echo fi + elif isBootRO + then + if isTrue ${MOUNTBOOT} + then + if ! mount -o remount,rw /boot + then + print_warning 1 "${BOLD}WARNING${NORMAL}: Failed to remount /boot RW!" + echo + else + print_info 1 "mount: /boot remounted read/write successfully!" + BOOTRW=1 + fi + fi fi fi @@ -232,6 +245,8 @@ else print_info 1 'initrd compiled successfully!' fi +[ "${BOOTRW}" != '' ] && mount -o remount,ro /boot + print_info 1 '' print_info 1 'Do NOT report kernel bugs as genkernel bugs unless your bug' print_info 1 'is about the default genkernel configuration...' diff --git a/x86/modules_load b/x86/modules_load index 9fe3a53..cb6b0cc 100644 --- a/x86/modules_load +++ b/x86/modules_load @@ -13,5 +13,5 @@ sim710 sym53c416" MODULES_FIREWIRE="ieee1394 ohci1394 sbp2" MODULES_ATARAID="ataraid pdcraid hptraid" -MODULES_PCMCIA="ide-cs" +MODULES_PCMCIA="pcmcia_core i82365 yenta_socket ds ide-cs" MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage"