diff options
author | Amadeusz Piotr Żołnowski <aidecoe@gentoo.org> | 2011-03-02 18:36:45 +0000 |
---|---|---|
committer | Amadeusz Piotr Żołnowski <aidecoe@gentoo.org> | 2011-03-02 18:36:45 +0000 |
commit | 0801f44dc0c4f812e62c0a82c07f51287ac50f83 (patch) | |
tree | c19704142a3deb69690c083ea08a5790eb0f5870 /sys-kernel | |
parent | Security bump. (diff) | |
download | gentoo-2-0801f44dc0c4f812e62c0a82c07f51287ac50f83.tar.gz gentoo-2-0801f44dc0c4f812e62c0a82c07f51287ac50f83.tar.bz2 gentoo-2-0801f44dc0c4f812e62c0a82c07f51287ac50f83.zip |
sys-kernel/dracut-007: Propagated few improvements from 008. Fixes bug #348085.
(Portage version: 2.1.9.41/cvs/Linux x86_64)
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/dracut/ChangeLog | 9 | ||||
-rw-r--r-- | sys-kernel/dracut/dracut-007.ebuild | 30 |
2 files changed, 23 insertions, 16 deletions
diff --git a/sys-kernel/dracut/ChangeLog b/sys-kernel/dracut/ChangeLog index f22b29fc07b1..0795b55941fa 100644 --- a/sys-kernel/dracut/ChangeLog +++ b/sys-kernel/dracut/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-kernel/dracut # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.11 2011/03/01 09:55:46 aidecoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.12 2011/03/02 18:36:45 aidecoe Exp $ + + 02 Mar 2011; Amadeusz Żołnowski <aidecoe@gentoo.org> dracut-007.ebuild: + Propagated few improvements from dracut-008.ebuild. Resolves bug #348085. + + Changes include: + - removed mount-boot and mkdir of /boot/dracut (user can create it + him/herself if really needed) 01 Mar 2011; Amadeusz Żołnowski <aidecoe@gentoo.org> dracut-007.ebuild: Added dependency on baselayout-1.12.14-r1 or above. diff --git a/sys-kernel/dracut/dracut-007.ebuild b/sys-kernel/dracut/dracut-007.ebuild index 3a5038469248..20cae8a77c23 100644 --- a/sys-kernel/dracut/dracut-007.ebuild +++ b/sys-kernel/dracut/dracut-007.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-007.ebuild,v 1.4 2011/03/01 09:55:46 aidecoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-007.ebuild,v 1.5 2011/03/02 18:36:45 aidecoe Exp $ EAPI=2 -inherit eutils mount-boot +inherit eutils DESCRIPTION="Generic initramfs generation tool" HOMEPAGE="http://sourceforge.net/projects/dracut/" @@ -111,18 +111,18 @@ src_prepare() { } src_compile() { - emake WITH_SWITCH_ROOT=0 prefix=/usr sysconfdir=/etc || die "emake failed" + emake WITH_SWITCH_ROOT=0 || die "emake failed" } src_install() { emake WITH_SWITCH_ROOT=0 \ - prefix=/usr sysconfdir=/etc \ - DESTDIR="${D}" install || die "emake install failed" + prefix=/usr sysconfdir=/etc DESTDIR="${D}" \ + install || die "emake install failed" local gen2conf - dodir /boot/dracut /var/lib/dracut/overlay /etc/dracut.conf.d - dodoc HACKING TODO AUTHORS NEWS README* + dodir /var/lib/dracut/overlay + dodoc HACKING TODO AUTHORS NEWS README* || die 'dodoc failed' case "$(base_sys_maj_ver)" in 1) gen2conf=gentoo.conf ;; @@ -131,7 +131,8 @@ src_install() { esac insinto /etc/dracut.conf.d - newins dracut.conf.d/${gen2conf}.example ${gen2conf} + newins dracut.conf.d/${gen2conf}.example ${gen2conf} \ + || die 'gen2conf ins failed' # # Modules @@ -139,9 +140,10 @@ src_install() { local module modules_dir="${D}/usr/share/dracut/modules.d" - echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version + echo "${PF}" > "${modules_dir}"/10rpmversion/dracut-version \ + || die 'dracut-version failed' - # Disable modules not enabled by USE flags + # Remove modules not enabled by USE flags for module in ${IUSE} ; do ! use ${module} && rm_module ${module} done @@ -149,10 +151,10 @@ src_install() { ! any_module ${DM_IUSE} && rm_module 90dm ! any_module ${NETWORK_IUSE} && rm_module 45ifcfg 40network - # Disable S/390 modules which are not tested at all + # Remove S/390 modules which are not tested at all rm_module 95dasd 95dasd_mod 95zfcp 95znet - # Disable modules which won't work for sure + # Remove modules which won't work for sure rm_module 95fcoe # no tools # fips module depends on masked app-crypt/hmaccalc @@ -160,13 +162,11 @@ src_install() { } pkg_postinst() { - mount-boot_pkg_postinst - elog 'To generate the initramfs:' elog ' # mount /boot (if necessary)' elog ' # dracut "" <kernel-version>' elog '' - elog 'For command line documentation see man 7 dracut.kernel.' + elog 'For command line documentation see dracut.kernel(7).' elog '' elog 'Simple example to select root and resume partition:' elog ' root=/dev/sda1 resume=/dev/sda2' |