Gentoo Archives: gentoo-commits

From: "Amadeusz Zolnowski (aidecoe)" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-kernel/dracut/files: 022-0016-dracut.sh-test-if-we-can-lazy-resolve-.patch
Date: Mon, 30 Jul 2012 20:26:48
Message-Id: 20120730202632.392FB2004C@flycatcher.gentoo.org
1 aidecoe 12/07/30 20:26:32
2
3 Added:
4 022-0016-dracut.sh-test-if-we-can-lazy-resolve-.patch
5 Log:
6 Rev-bump. Fixes bug #428232.
7
8 (Portage version: 2.1.11.9/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 sys-kernel/dracut/files/022-0016-dracut.sh-test-if-we-can-lazy-resolve-.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/files/022-0016-dracut.sh-test-if-we-can-lazy-resolve-.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/files/022-0016-dracut.sh-test-if-we-can-lazy-resolve-.patch?rev=1.1&content-type=text/plain
15
16 Index: 022-0016-dracut.sh-test-if-we-can-lazy-resolve-.patch
17 ===================================================================
18 From d642c41070e1e8f3a74346a3105a35a5c0af0058 Mon Sep 17 00:00:00 2001
19 From: Harald Hoyer <harald@××××××.com>
20 Date: Mon, 30 Jul 2012 13:02:41 +0200
21 Subject: [PATCH 16/16] dracut.sh: test if we can lazy resolve with ldd
22
23 ---
24 dracut.sh | 9 ++++++++-
25 1 files changed, 8 insertions(+), 1 deletions(-)
26
27 diff --git a/dracut.sh b/dracut.sh
28 index 107fc27..2235e9a 100755
29 --- a/dracut.sh
30 +++ b/dracut.sh
31 @@ -600,11 +600,18 @@ else
32 exit 1
33 fi
34
35 +inst /bin/sh
36 +if ! $DRACUT_INSTALL ${initdir+-D "$initdir"} -R "$initdir/bin/sh" &>/dev/null; then
37 + unset DRACUT_RESOLVE_LAZY
38 + export DRACUT_RESOLVE_DEPS=1
39 +fi
40 +rm -fr ${initdir}/*
41 +
42 if [[ -f $dracutbasedir/dracut-version.sh ]]; then
43 . $dracutbasedir/dracut-version.sh
44 fi
45
46 -# Verify bash version, curret minimum is 3.1
47 +# Verify bash version, current minimum is 3.1
48 if (( ${BASH_VERSINFO[0]} < 3 ||
49 ( ${BASH_VERSINFO[0]} == 3 && ${BASH_VERSINFO[1]} < 1 ) )); then
50 dfatal 'You need at least Bash 3.1 to use dracut, sorry.'
51 --
52 1.7.8.6