diff options
author | Daniel Robbins <drobbins@funtoo.org> | 2011-05-21 17:52:01 -0600 |
---|---|---|
committer | Daniel Robbins <drobbins@funtoo.org> | 2011-05-21 17:52:01 -0600 |
commit | b3d5aa52f0b0d837c8b127d01a3c7f532765873b (patch) | |
tree | 8ed6de5a93d52e1c0f8b4ad755e778b5ff1b68d3 | |
parent | adding -funtoo version suffix to make it clear it's a forked version (diff) | |
parent | added hpsa to defaults/modules_load; fixes bug #363369 (diff) | |
download | genkernel-b3d5aa52f0b0d837c8b127d01a3c7f532765873b.tar.gz genkernel-b3d5aa52f0b0d837c8b127d01a3c7f532765873b.tar.bz2 genkernel-b3d5aa52f0b0d837c8b127d01a3c7f532765873b.zip |
merged gentoo's 3.4.15
-rw-r--r-- | ChangeLog | 61 | ||||
-rw-r--r-- | HACKING | 2 | ||||
-rw-r--r-- | arch/alpha/modules_load | 2 | ||||
-rw-r--r-- | arch/arm/modules_load | 2 | ||||
-rw-r--r-- | arch/ia64/modules_load | 2 | ||||
-rw-r--r-- | arch/mips/modules_load | 2 | ||||
-rw-r--r-- | arch/parisc/modules_load | 2 | ||||
-rw-r--r-- | arch/parisc64/modules_load | 2 | ||||
-rw-r--r-- | arch/ppc/modules_load | 2 | ||||
-rw-r--r-- | arch/ppc64/modules_load | 2 | ||||
-rw-r--r-- | arch/sparc/modules_load | 2 | ||||
-rw-r--r-- | arch/sparc64/modules_load | 2 | ||||
-rw-r--r-- | arch/um/modules_load | 2 | ||||
-rw-r--r-- | arch/x86/modules_load | 2 | ||||
-rw-r--r-- | arch/x86_64/modules_load | 2 | ||||
-rwxr-xr-x | defaults/initrd.defaults | 2 | ||||
-rwxr-xr-x | defaults/initrd.scripts | 45 | ||||
-rwxr-xr-x | defaults/linuxrc | 26 | ||||
-rw-r--r-- | defaults/modules_load | 4 | ||||
-rw-r--r-- | doc/genkernel.8.txt | 19 | ||||
-rwxr-xr-x | gen_cmdline.sh | 12 | ||||
-rwxr-xr-x | gen_compile.sh | 10 | ||||
-rwxr-xr-x | gen_determineargs.sh | 1 | ||||
-rwxr-xr-x | gen_initramfs.sh | 19 | ||||
-rwxr-xr-x | genkernel | 2 | ||||
-rw-r--r-- | genkernel.conf | 15 | ||||
-rw-r--r-- | patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch | 11 | ||||
-rw-r--r-- | patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch | 11 |
28 files changed, 209 insertions, 57 deletions
@@ -5,6 +5,67 @@ # Distributed under the GPL v2 # $Id$ + 28 Mar 2011; Sebastian Pipping <sping@gentoo.org> genkernel: + Bump to 3.4.15 + + 24 Mar 2011; Peter Hjalmarsson <xake@rymdraket.net> defaults/linuxrc, initrd.scripts: + Rescue /proc and /sys over into chroot + Apply mount options noexec,nosuid,nodev to /proc and /sys + + 22 Mar 2011; Fabio Erculiani <lxnay@sabayon.org> gen_compile.sh, patches/iscsi/*: + Fix compilation of iSCSI + + 23 Mar 2011; Peter Hjalmarsson <xake@rymdraket.net> doc/genkernel.8.txt, + gen_cmdline.sh, gen_initramfs.sh: + Remove "--slowusb" as it is enabled by default now. Also document "noslowusb" + ramdisk option that skips it. + + 22 Mar 2011; Peter Hjalmarsson <xake@rymdraket.net> defaults/initrd.defaults, + defaults/initrd.scripts: + Set DO_slowusb as default, and make setup_slowusb unset it if it cannot find + a usb-storage attached. This makes genkernel ramdisk adhere to "noslowusb", + makes the ramdisk only wait if there is a usb-storage attached and should fix + gentoo bug #359619. + + 16 Mar 2011; Sebastian Pipping <sping@gentoo.org> genkernel: + Bump version to 3.4.14 + + 16 Mar 2011; Fabio Erculiani <lxnay@sabayon.org> **/modules_load: + Add btrfs to MODULES_FS + + 07 Mar 2011; Peter Hjalmarsson <xake@rymdraket.net> defaults/initrd.scripts: + Fix typo where the kernelcmd version "dokeymap" was added to MY_HWOPTS + instead of the HWOPTS version "keymap". + Broke setups where only "keymap=<...>" was added to kernelcmd (bug #356167) + + 24 Feb 2011; Sebastian Pipping <sping@gentoo.org> ChangeLog: + Fix handling of mdadm.conf (bug #354809) + + Special thanks: + - Peter Hjalmarsson + + 10 Feb 2011; Sebastian Pipping <sping@gentoo.org> genkernel: + Bump version to 3.4.13 + + 09 Feb 2011; Sebastian Pipping <sping@gentoo.org> genkernel.conf: + Add SPLASH and SPLASH_THEME to genkernel.conf (bug #268468) + + Special thanks: + - PhobosK + + 08 Feb 2011; Sebastian Pipping <sping@gentoo.org> ChangeLog: + Add iBFT support for iSCSI (bug #314575) + + Special thanks: + - Stefan Behte + + 7 Feb 2011; Sebastian Pipping <sping@gentoo.org> ChangeLog: + Use devtmpfs/tmpfs for /dev (bug #353024) + Rescue devtmpfs /dev over to chroot (bug #353024, bug #344407) + + Special thanks: + - Peter Hjalmarsson + 31 Jan 2011; Sebastian Pipping <sping@gentoo.org> genkernel: Bump version to 3.4.12.6 @@ -19,4 +19,4 @@ Rolling a release: - make dist - upload genkernel-${PV}.tar.bz2 to the hosting: scp genkernel-${PV}.tar.bz2 ${USER}@dev.gentoo.org:/space/distfiles-local/ -- check open bugs with keyword "InSVN" for closability +- check open bugs with keyword "InSVN" or "InVCS" for closability diff --git a/arch/alpha/modules_load b/arch/alpha/modules_load index 63ef20fa..faf099de 100644 --- a/arch/alpha/modules_load +++ b/arch/alpha/modules_load @@ -25,5 +25,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/arm/modules_load b/arch/arm/modules_load index b2cf1d15..cd149515 100644 --- a/arch/arm/modules_load +++ b/arch/arm/modules_load @@ -22,5 +22,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/ia64/modules_load b/arch/ia64/modules_load index 2612197e..51bdc14f 100644 --- a/arch/ia64/modules_load +++ b/arch/ia64/modules_load @@ -25,4 +25,4 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/mips/modules_load b/arch/mips/modules_load index 63ef20fa..faf099de 100644 --- a/arch/mips/modules_load +++ b/arch/mips/modules_load @@ -25,5 +25,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/parisc/modules_load b/arch/parisc/modules_load index 63ef20fa..faf099de 100644 --- a/arch/parisc/modules_load +++ b/arch/parisc/modules_load @@ -25,5 +25,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/parisc64/modules_load b/arch/parisc64/modules_load index 2612197e..51bdc14f 100644 --- a/arch/parisc64/modules_load +++ b/arch/parisc64/modules_load @@ -25,4 +25,4 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/ppc/modules_load b/arch/ppc/modules_load index 63ef20fa..faf099de 100644 --- a/arch/ppc/modules_load +++ b/arch/ppc/modules_load @@ -25,5 +25,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/ppc64/modules_load b/arch/ppc64/modules_load index 2612197e..51bdc14f 100644 --- a/arch/ppc64/modules_load +++ b/arch/ppc64/modules_load @@ -25,4 +25,4 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/sparc/modules_load b/arch/sparc/modules_load index 63ef20fa..faf099de 100644 --- a/arch/sparc/modules_load +++ b/arch/sparc/modules_load @@ -25,5 +25,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/sparc64/modules_load b/arch/sparc64/modules_load index 2612197e..51bdc14f 100644 --- a/arch/sparc64/modules_load +++ b/arch/sparc64/modules_load @@ -25,4 +25,4 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/um/modules_load b/arch/um/modules_load index 55dcc238..dfe44313 100644 --- a/arch/um/modules_load +++ b/arch/um/modules_load @@ -25,5 +25,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/arch/x86/modules_load b/arch/x86/modules_load index 2d159fb2..293236d6 100644 --- a/arch/x86/modules_load +++ b/arch/x86/modules_load @@ -26,7 +26,7 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" # Crypto stuff MODULES_CRYPT="aes sha1 sha256 sha512 xts" diff --git a/arch/x86_64/modules_load b/arch/x86_64/modules_load index fe268910..cabed087 100644 --- a/arch/x86_64/modules_load +++ b/arch/x86_64/modules_load @@ -25,4 +25,4 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/defaults/initrd.defaults b/defaults/initrd.defaults index 14a403ff..fd6d9fc7 100755 --- a/defaults/initrd.defaults +++ b/defaults/initrd.defaults @@ -80,4 +80,4 @@ DEFAULT_NFSOPTIONS="ro,nolock,rsize=1024,wsize=1024" # Only sections that are in by default or those that # are not module groups need to be defined here... HWOPTS='keymap cache modules pata sata scsi usb firewire waitscan slowusb evms lvm dmraid mdadm fs net' -MY_HWOPTS='modules pata sata scsi usb firewire waitscan dmraid mdadm fs net iscsi' +MY_HWOPTS='modules pata sata scsi slowusb usb firewire waitscan dmraid mdadm fs net iscsi' diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 6f257f8c..ab46f1f5 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -210,7 +210,7 @@ cache_cd_contents() { } mount_sysfs() { - mount -t sysfs /sys /sys >/dev/null 2>&1 + mount -t sysfs sysfs /sys -o noexec,nosuid,nodev >/dev/null 2>&1 ret=$? [ ${ret} -eq 0 ] || bad_msg "Failed to mount /sys!" } @@ -314,8 +314,21 @@ run_shell() { } runmdev() { - # busybox udev replacement - mdev -s + # Use devtmpfs if enabled in kernel, + # else tmpfs. Always run mdev just in case + devfs=tmpfs + if grep -qs devtmpfs /proc/filesystems ; then + devfs=devtmpfs + fi + + # Options copied from /etc/init.d/udev-mount, should probably be kept in sync + mount -t $devfs -o "exec,nosuid,mode=0755,size=10M" udev /dev \ + || bad_msg "Failed to mount /dev as ${devfs}" + + # http://git.busybox.net/busybox/plain/docs/mdev.txt + mkdir /dev/pts + mount -t devpts devpts /dev/pts || bad_msg "Failed to mount /dev/pts" + mdev -s || bad_msg "Failed to receive dynamic updates from mdev" } test_success() { @@ -413,11 +426,12 @@ setup_hotplug() { } setup_slowusb() { - # slowusb already set? - if [ "${DO_slowusb}" = "1" ] - then - return - fi + # This function removes unset DO_slowusb if there is no usb-storage attached. + # If noslowusb is set, skip this function + [ "${DO_slowusb}" ] || return + + # Unset DO_slowusb, so we can set it again if usb-storage has something attached + unset DO_slowusb local usb_storage_dir="/sys/bus/usb/drivers/usb-storage" if [ ! -d "${usb_storage_dir}" ] @@ -460,7 +474,7 @@ cmdline_hwopts() { fi if [ "$(echo ${y} | cut -b -7)" = "keymap=" ] then - MY_HWOPTS="${MY_HWOPTS} dokeymap" + MY_HWOPTS="${MY_HWOPTS} keymap" fi done done @@ -615,11 +629,6 @@ startVolumes() { if [ "${USE_MDADM}" = '1' ] then - if [ ! -e '/etc/mdadm.conf' ] - then - echo "DEVICE /dev/sd[a-z]* /dev/hd[a-z]*" >/etc/mdadm.conf - /sbin/mdadm --examine --scan >>/etc/mdadm.conf - fi /sbin/mdadm --assemble --scan fi @@ -683,10 +692,16 @@ startVolumes() { } startiscsi() { + + if [ ! -n "${ISCSI_NOIBFT}" ] + then + good_msg "Activating iSCSI via iBFT" + iscsistart -b + fi if [ -n "${ISCSI_INITIATORNAME}" ] && [ -n "${ISCSI_TARGET}" ] && [ -n "${ISCSI_ADDRESS}" ] then - good_msg "Activating iSCSI" + good_msg "Activating iSCSI via cmdline" if [ "${ISCSI_TGPT}" ] then diff --git a/defaults/linuxrc b/defaults/linuxrc index 4098b2b5..41a3ccca 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -20,7 +20,7 @@ then exit 1 fi -mount -t proc proc /proc >/dev/null 2>&1 +mount -t proc -o noexec,nosuid,nodev proc /proc >/dev/null 2>&1 mount -o remount,rw / >/dev/null 2>&1 # Set up symlinks @@ -178,6 +178,9 @@ do iscsi_debug\=*) ISCSI_DEBUG=`parse_opt "${x}"` ;; + iscsi_noibft) + ISCSI_NOIBFT=1 + ;; # Crypto crypt_root\=*) CRYPT_ROOT=`parse_opt "${x}"` @@ -297,7 +300,10 @@ start_dev_mgr [ "${DO_slowusb}" ] && sleep 10 # Start iSCSI -startiscsi +if [ -e /bin/iscsistart ] +then + startiscsi +fi # Setup btrfs, see bug 303529 setup_btrfsctl @@ -741,8 +747,20 @@ fi cd "${CHROOT}" mkdir "${CHROOT}/proc" "${CHROOT}/sys" 2>/dev/null echo -ne "${BOLD}.${NORMAL}" -umount /sys || echo '*: Failed to unmount the ramdisk /sys!' -umount /proc || echo '*: Failed to unmount the ramdisk /proc!' + +# If devtmpfs is mounted, try move it to the new root +# If that fails, try to unmount all possible mounts of devtmpfs as stuff breaks otherwise +for fs in /dev /sys /proc +do + if grep -qs "$fs" /proc/mounts + then + if ! mount --move $fs "${CHROOT}"$fs + then + umount $fs || echo '*: Failed to move and unmount the ramdisk $fs!' + fi + fi +done + echo -e "${BOLD}.${NORMAL}" exec /sbin/switch_root -c "/dev/console" "${CHROOT}" "${REAL_INIT:-/sbin/init}" "${INIT_OPTS}" diff --git a/defaults/modules_load b/defaults/modules_load index 47643a1b..31f534b1 100644 --- a/defaults/modules_load +++ b/defaults/modules_load @@ -10,7 +10,7 @@ MODULES_MDADM="dm-mod dm-snapshot dm-mirror dm-bbr raid0 raid1 raid456 raid5 rai # Hardware (IDE/SCSI/SATA) MODULES_PATA="pata_mpiix pata_pdc2027x pata_radisys pata_sil680 pata_rz1000 pata_efar pata_cmd64x pata_hpt366 pata_hpt37x pata_hpt3x3 pata_hpt3x2n pata_optidma pata_it821x pata_artop pata_oldpiix pata_cypress pata_platform pata_serverworks pata_legacy pata_ns87410 pata_ns87415 pata_pcmcia pata_isapnp pata_it8213 pata_ali pata_amd pata_opti pata_atiixp pata_triflex pata_pdc202xx_old pata_sc1200 pata_qdi pata_netcell pata_sis pata_hpt3x2n pata_marvell pata_jmicron pata_via pata_cs5520 pata_cs5530 pata_cs5535 pata_sl82c105 libata" MODULES_SATA="sata_promise sata_sil sata_sil24 sata_svw sata_via sata_nv sata_sx4 sata_sis sata_uli sata_vsc sata_qstor ahci libata ata_piix sata_mv sata_inic162x pdc_adma" -MODULES_SCSI="sd_mod sg sr_mod aic79xx aic7xxx aic7xxx_old arcmsr BusLogic ncr53c8xx NCR53c406a initio advansys aha1740 aha1542 aha152x dtc fdomain gdth pas16 pci2220i pci2000 psi240i qlogicfas qlogicfc qlogicisp qlogicpti seagate t128 u14-34f ultrastor wd7000 NCR53c406a sym53c8xx dmx3191d imm in2000 ips qla1280 sim710 sym53c416 dc395x atp870u mptbase mptscsih mptspi mptfc mptsas 3w-xxxx 3w-9xxx cpqarray cciss DAC960 sx8 aacraid megaraid megaraid_mbox megaraid_mm megaraid_sas qla2xxx lpfc scsi_transport_fc aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx" +MODULES_SCSI="sd_mod sg sr_mod aic79xx aic7xxx aic7xxx_old arcmsr BusLogic ncr53c8xx NCR53c406a initio advansys aha1740 aha1542 aha152x dtc fdomain gdth pas16 pci2220i pci2000 psi240i qlogicfas qlogicfc qlogicisp qlogicpti seagate t128 u14-34f ultrastor wd7000 NCR53c406a sym53c8xx dmx3191d imm in2000 ips qla1280 sim710 sym53c416 dc395x atp870u mptbase mptscsih mptspi mptfc mptsas 3w-xxxx 3w-9xxx cpqarray cciss hpsa DAC960 sx8 aacraid megaraid megaraid_mbox megaraid_mm megaraid_sas qla2xxx lpfc scsi_transport_fc aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx aic94xx" MODULES_WAITSCAN="scsi_wait_scan" # Hardware (Network) @@ -25,5 +25,5 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide MODULES_USB="ehci-hcd uhci usb-ohci hid usb-storage uhci-hcd ohci-hcd usbhid sl811-hcd" # Filesystems -MODULES_FS="ext2 ext3 ext4 reiserfs jfs nfs xfs fuse" +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse" diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt index 92b8415e..14acd662 100644 --- a/doc/genkernel.8.txt +++ b/doc/genkernel.8.txt @@ -130,7 +130,7 @@ KERNEL COMPILATION to the second most recently built image, if one exists. Similar symlinks (both * and *.old) are managed for initramfs and System.map. The corresponding work products (i.e., the actual kernel - and initamfs images, and System.map) are also managed accordingly. + and initramfs images, and System.map) are also managed accordingly. NOTE: Specifying *--symlink* does nothing unless *--install* is also specified. @@ -246,11 +246,16 @@ INITIALIZATION exist. *--mdadm*:: - Copy '/etc/mdadm.conf' and mdadm/mdmon binaries to initramfs. + Include mdadm/mdmon support. Without sys-fs/mdadm[static] installed, this will compile mdadm for you. +*--mdadm-config*=<file>:: + Use <file> as configfile for MDADM. + By default the ramdisk will be built *without* an mdadm.conf and + will auto-detect arrays during boot-up. + *--dmraid*:: - Add DMRAID support. + Include DMRAID support. *--multipath*:: Include Multipath support @@ -258,9 +263,6 @@ INITIALIZATION *--iscsi*:: Include iSCSI support -*--slowusb*:: - Enables extra pauses for slow USB CD boots. - *--bootloader*=*grub*:: Add new kernel to GRUB configuration. @@ -422,6 +424,11 @@ which the ramdisk scripts would recognize. Activate SCSI devices on bootup, necessary when SCSI support is compiled as modules and you're using SCSI or SATA devices. +*noslowusb*:: + By default genkernel pause for 10 seconds if it finds a attached + usb-storage device to give them time to initiate. + This option skips that pause. + *keymap*='MAP':: Set keymap to 'MAP', e.g. *keymap*=de. For valid values of 'MAP' please see diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 0d1ad261..86028e16 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -79,11 +79,11 @@ longusage() { echo " --> 'emerge evms' in the host operating system" echo " first" echo " --lvm Include LVM support" - echo " --mdadm Copy /etc/mdadm.conf to initramfs" + echo " --mdadm Include MDADM/MDMON support" + echo " --mdadm-config=<file> Use file as mdadm.conf in initramfs" echo " --dmraid Include DMRAID support" echo " --multipath Include Multipath support" echo " --iscsi Include iSCSI support" - echo " --slowusb Enables extra pauses for slow USB CD boots" echo " --bootloader=grub Add new kernel to GRUB configuration" echo " --linuxrc=<file> Specifies a user created linuxrc" echo " --busybox-config=<file> Specifies a user created busybox config" @@ -254,6 +254,10 @@ parse_cmdline() { CMD_MDADM=1 print_info 2 "CMD_MDADM: $CMD_MDADM" ;; + --mdadm-config=*) + CMD_MDADM_CONFIG=`parse_opt "$*"` + print_info 2 "CMD_MDADM_CONFIG: $CMD_MDADM_CONFIG" + ;; --no-busybox) CMD_BUSYBOX=0 print_info 2 "CMD_BUSYBOX: ${CMD_BUSYBOX}" @@ -270,10 +274,6 @@ parse_cmdline() { CMD_REAL_ROOT=`parse_opt "$*"` print_info 2 "CMD_REAL_ROOT: ${CMD_REAL_ROOT}" ;; - --slowusb) - CMD_SLOWUSB=1 - print_info 2 "CMD_SLOWUSB: ${CMD_SLOWUSB}" - ;; --dmraid) if [ ! -e /usr/include/libdevmapper.h ] then diff --git a/gen_compile.sh b/gen_compile.sh index 373d1eff..b522ca2b 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -670,10 +670,18 @@ compile_iscsi() { gen_die "ISCSI directory ${ISCSI_DIR} invalid" print_info 1 'iSCSI: >> Compiling...' cd "${TEMP}/${ISCSI_DIR}" + apply_patches iscsi ${ISCSI_VER} # Only build userspace + print_info 1 'iSCSI: >> Configuring userspace...' + cd utils/open-isns || gen_die 'Could not enter open-isns dir' + # we currently have a patch that changes configure.ac + # once given patch is dropped, drop autoconf too + autoconf || gen_die 'Could not tweak open-iscsi configuration' + ./configure --without-slp >> ${LOGFILE} 2>&1 || gen_die 'Could not configure userspace' + cd ../.. || gen_die 'wtf?' MAKE=${UTILS_MAKE} compile_generic "user" "" - + # if kernel modules exist, copy them to initramfs, otherwise it will be compiled into the kernel mkdir -p "${TEMP}/initramfs-iscsi-temp/lib/modules/${RELEASE}/kernel/drivers/scsi/" for modname in iscsi_tcp libiscsi scsi_transport_iscsi diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 25719698..2ad9a05e 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -120,6 +120,7 @@ determine_real_args() { set_config_with_override 1 LUKS CMD_LUKS set_config_with_override 1 GPG CMD_GPG set_config_with_override 1 MDADM CMD_MDADM + set_config_with_override 2 MDADM_CONFIG CMD_MDADM_CONFIG set_config_with_override 1 MULTIPATH CMD_MULTIPATH set_config_with_override 1 FIRMWARE CMD_FIRMWARE set_config_with_override 2 FIRMWARE_DST CMD_FIRMWARE_DST "/lib/firmware" diff --git a/gen_initramfs.sh b/gen_initramfs.sh index bb4de2c7..c4320ce0 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -342,8 +342,19 @@ append_mdadm(){ mkdir -p "${TEMP}/initramfs-mdadm-temp/sbin/" if [ "${MDADM}" = '1' ] then - cp -a /etc/mdadm.conf "${TEMP}/initramfs-mdadm-temp/etc" \ - || gen_die "Could not copy mdadm.conf!" + if [ -n "${MDADM_CONFIG}" ] + then + if [ -f "${MDADM_CONFIG}" ] + then + cp -a "${MDADM_CONFIG}" "${TEMP}/initramfs-mdadm-temp/etc/mdadm.conf" \ + || gen_die "Could not copy mdadm.conf!" + else + gen_die 'sl${MDADM_CONFIG} does not exist!' + fi + else + print_info 1 ' MDADM: Skipping inclusion of mdadm.conf' + fi + if [ -e '/sbin/mdadm' ] && LC_ALL="C" ldd /sbin/mdadm | grep -q 'not a dynamic executable' \ && [ -e '/sbin/mdmon' ] && LC_ALL="C" ldd /sbin/mdmon | grep -q 'not a dynamic executable' then @@ -618,10 +629,6 @@ append_auxilary() { mkdir -p "${TEMP}/initramfs-aux-temp/lib/keymaps" /bin/tar -C "${TEMP}/initramfs-aux-temp/lib/keymaps" -zxf "${GK_SHARE}/defaults/keymaps.tar.gz" fi - if isTrue $CMD_SLOWUSB - then - echo 'MY_HWOPTS="${MY_HWOPTS} slowusb"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults - fi cd ${TEMP}/initramfs-aux-temp/sbin && ln -s ../init init cd ${TEMP} @@ -2,7 +2,7 @@ # $Id$ PATH="${PATH}:/sbin:/usr/sbin" -GK_V='3.4.12.6-r4-funtoo' +GK_V='3.4.15-funtoo' # Set the default for TMPDIR. May be modified by genkernel.conf or the # --tempdir command line option. diff --git a/genkernel.conf b/genkernel.conf index 20956f44..eca74de5 100644 --- a/genkernel.conf +++ b/genkernel.conf @@ -70,10 +70,15 @@ USECOLOR="yes" # If included, busybox is rebuilt if the cached copy is out of date. # BUSYBOX="yes" -# Copy /etc/mdadm.conf, mdadm/mdmon binaries to initramfs. +# Includes mdadm/mdmon binaries in initramfs. # Without sys-fs/mdadm[static] installed, this will build a static mdadm. # MDADM="no" +# Specify a custom mdadm.conf. +# By default the ramdisk will be built *without* an mdadm.conf and will auto-detect +# arrays during bootup. Usually, this should not be needed. +# MDADM_CONFIG="/etc/mdadm.conf" + # Add Multipath support. # MULTIPATH="no" @@ -93,6 +98,14 @@ DISKLABEL="yes" # Add new kernel to grub? # BOOTLOADER="grub" +# Enable splashutils in early space (initrd). Default is "no". +# SPLASH="yes" + +# Use this splash theme. If commented out - the "default" name theme is used. +# Also, SPLASH="yes" needs to be enabled for this one to one work. +# This supersedes the "SPLASH_THEME" option of /etc/conf.d/splash (in early space). +# SPLASH_THEME="gentoo" + # =========Low Level Compile Settings========= # # GNU Make to use for kernel. See also the --kernel-make command line option. diff --git a/patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch b/patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch new file mode 100644 index 00000000..185f1acd --- /dev/null +++ b/patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch @@ -0,0 +1,11 @@ +--- open-iscsi-2.0-872.orig/Makefile ++++ open-iscsi-2.0-872/Makefile +@@ -27,7 +27,7 @@ IFACEFILES = etc/iface.example + all: user kernel + + user: ; +- cd utils/open-isns; ./configure; $(MAKE) ++ cd utils/open-isns; $(MAKE) + $(MAKE) -C utils/sysdeps + $(MAKE) -C utils/fwparam_ibft + $(MAKE) -C usr diff --git a/patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch b/patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch new file mode 100644 index 00000000..51ca3e5b --- /dev/null +++ b/patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch @@ -0,0 +1,11 @@ +--- a/utils/open-isns/configure.ac ++++ b/utils/open-isns/configure.ac +@@ -80,7 +80,7 @@ AC_ARG_WITH(slp, + else + WITH_SLP=yes + CPPFLAGS="$CPPFLAGS -I${withval}" +- LDFLAGS="$LDFLAGS -L${withval}" ++ LDFLAGS="$LDFLAGS -L${withval} -lslp" + fi + ] + ) |