Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/kexec-tools/files: kexec.init-2.0.4
Date: Sat, 30 Mar 2013 13:01:54
Message-Id: 20130330130150.2A5252171E@flycatcher.gentoo.org
1 jlec 13/03/30 13:01:50
2
3 Modified: kexec.init-2.0.4
4 Log:
5 sys-apps/kexec-tools: Fix init script if no initrd is used, #463752
6
7 (Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
8
9 Revision Changes Path
10 1.2 sys-apps/kexec-tools/files/kexec.init-2.0.4
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.4?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.4?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.4?r1=1.1&r2=1.2
15
16 Index: kexec.init-2.0.4
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.4,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- kexec.init-2.0.4 27 Mar 2013 11:50:55 -0000 1.1
23 +++ kexec.init-2.0.4 30 Mar 2013 13:01:50 -0000 1.2
24 @@ -1,7 +1,7 @@
25 #!/sbin/runscript
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.4,v 1.1 2013/03/27 11:50:55 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.4,v 1.2 2013/03/30 13:01:50 jlec Exp $
30
31 depend() {
32 need localmount
33 @@ -80,7 +80,8 @@
34 fi
35 fi
36
37 - if [ -n ${INITRD}] && [ -z ${initrd} ]; then
38 + if [ -n "${INITRD}" ] && \
39 + ! [ "${INITRD}" == "${initrd}" ]; then
40 eerror "Requested initrd: ${INITRD}"
41 eerror "could not be found"
42 return 1