summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2013-04-02 14:51:03 +0000
committerAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2013-04-02 14:51:03 +0000
commit10a7b09b1320ce9df38143e3542962482f934c5c (patch)
tree259fba2761b8d848f4bf314fbb9ab83350d49941 /sys-kernel
parentFixed timestamp in mask comment (diff)
downloadgentoo-2-10a7b09b1320ce9df38143e3542962482f934c5c.tar.gz
gentoo-2-10a7b09b1320ce9df38143e3542962482f934c5c.tar.bz2
gentoo-2-10a7b09b1320ce9df38143e3542962482f934c5c.zip
Backported changes wrt systemd and other cosmetic changes from 026-r2 to 025.
(Portage version: 2.1.11.59/cvs/Linux x86_64, signed Manifest commit with key F0134531E1DBFAB5)
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/dracut/ChangeLog6
-rw-r--r--sys-kernel/dracut/dracut-025.ebuild18
-rw-r--r--sys-kernel/dracut/files/025-0000-fix-version-print.patch13
3 files changed, 32 insertions, 5 deletions
diff --git a/sys-kernel/dracut/ChangeLog b/sys-kernel/dracut/ChangeLog
index 1d8abc8de02f..4a6d9edf3013 100644
--- a/sys-kernel/dracut/ChangeLog
+++ b/sys-kernel/dracut/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-kernel/dracut
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.116 2013/04/02 14:16:51 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.117 2013/04/02 14:51:03 aidecoe Exp $
+
+ 02 Apr 2013; Amadeusz Żołnowski <aidecoe@gentoo.org>
+ +files/025-0000-fix-version-print.patch, dracut-025.ebuild:
+ Backported changes wrt systemd and other cosmetic changes from 026-r2 to 025.
02 Apr 2013; Amadeusz Żołnowski <aidecoe@gentoo.org>
+files/026-0000-fix-version-print.patch, dracut-019-r6.ebuild,
diff --git a/sys-kernel/dracut/dracut-025.ebuild b/sys-kernel/dracut/dracut-025.ebuild
index 9fb7b1b1376e..0fbb5f83d301 100644
--- a/sys-kernel/dracut/dracut-025.ebuild
+++ b/sys-kernel/dracut/dracut-025.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-025.ebuild,v 1.3 2013/04/02 14:16:51 aidecoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-025.ebuild,v 1.4 2013/04/02 14:51:03 aidecoe Exp $
EAPI=4
@@ -109,7 +109,7 @@ DEPEND="${CDEPEND}
DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules
README.testsuite TODO )
-DRACUT_LIBDIR="/usr/lib"
+MY_LIBDIR="/usr/lib"
#
# Helper functions
@@ -153,6 +153,7 @@ rm_module() {
#
src_prepare() {
+ epatch "${FILESDIR}/${PV}-0000-fix-version-print.patch"
epatch "${FILESDIR}/${PV}-0001-dracut-functions.sh-support-for-altern.patch"
epatch "${FILESDIR}/${PV}-0002-gentoo.conf-let-udevdir-be-handled-by-.patch"
epatch "${FILESDIR}/${PV}-0003-rootfs-block-mount-root.sh-fixup-for-8.patch"
@@ -178,7 +179,7 @@ src_prepare() {
}
src_configure() {
- econf --libdir="${DRACUT_LIBDIR}"
+ econf --libdir="${MY_LIBDIR}"
}
src_compile() {
@@ -196,6 +197,10 @@ src_install() {
local libdir="${DRACUT_LIBDIR}"
+ local dracutlibdir="${MY_LIBDIR#/}/dracut"
+
+ echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh"
+
insinto /etc/dracut.conf.d
newins dracut.conf.d/gentoo.conf.example gentoo.conf
@@ -210,7 +215,7 @@ src_install() {
# Modules
#
local module
- modules_dir="${D%/}/${libdir#/}/dracut/modules.d"
+ modules_dir="${D%/}/${dracutlibdir}/modules.d"
# Remove modules not enabled by USE flags
for module in ${IUSE_DRACUT_MODULES} ; do
@@ -227,6 +232,11 @@ src_install() {
use device-mapper || rm_module 90dm
use net || rm_module 40network 45ifcfg 45url-lib
+ if use dracut_modules_systemd; then
+ # With systemd following modules do not make sense
+ rm_module 96securityfs 98selinux
+ fi
+
# Remove S/390 modules which are not tested at all
rm_module 80cms 95dasd 95dasd_mod 95zfcp 95znet
diff --git a/sys-kernel/dracut/files/025-0000-fix-version-print.patch b/sys-kernel/dracut/files/025-0000-fix-version-print.patch
new file mode 100644
index 000000000000..3607fb24552c
--- /dev/null
+++ b/sys-kernel/dracut/files/025-0000-fix-version-print.patch
@@ -0,0 +1,13 @@
+diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
+index b441a27..410201a 100755
+--- a/modules.d/99base/init.sh
++++ b/modules.d/99base/init.sh
+@@ -104,7 +104,7 @@ else
+ fi
+
+ [ -f /etc/initrd-release ] && . /etc/initrd-release
+-[ -n "$VERSION" ] && info "dracut-$VERSION"
++[ -n "$VERSION_ID" ] && info "$NAME-$VERSION_ID"
+
+ source_conf /etc/conf.d
+