Gentoo Archives: gentoo-commits

From: "William Hubbs (williamh)" <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/openrc: openrc-9999.ebuild
Date: Wed, 31 Oct 2012 22:47:53
Message-Id: 20121031224731.8097621600@flycatcher.gentoo.org
1 williamh 12/10/31 22:47:31
2
3 Modified: openrc-9999.ebuild
4 Log:
5 Add tmpfiles.setup to the boot runlevel and udev-mount to the sysinit runlevel.
6
7 (Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key 0x30C46538)
8
9 Revision Changes Path
10 1.113 sys-apps/openrc/openrc-9999.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.113&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.113&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?r1=1.112&r2=1.113
15
16 Index: openrc-9999.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v
19 retrieving revision 1.112
20 retrieving revision 1.113
21 diff -u -r1.112 -r1.113
22 --- openrc-9999.ebuild 31 Oct 2012 17:39:52 -0000 1.112
23 +++ openrc-9999.ebuild 31 Oct 2012 22:47:31 -0000 1.113
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2012 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.112 2012/10/31 17:39:52 williamh Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.113 2012/10/31 22:47:31 williamh Exp $
29
30 EAPI=4
31
32 @@ -240,8 +240,7 @@
33
34 if ! has_version ">=sys-apps/openrc-0.11"; then
35 add_boot_init sysfs sysinit
36 - add_boot_init tmpfilesd.sysinit sysinit
37 - add_boot_init tmpfilesd.boot boot
38 + add_boot_init tmpfiles.setup boot
39 fi
40
41 # set default interactive shell to sulogin if it exists
42 @@ -249,6 +248,7 @@
43
44 has_version sys-apps/openrc || migrate_from_baselayout_1
45 has_version ">=sys-apps/openrc-0.4.0" || migrate_udev_init_script
46 + has_version ">=sys-apps/openrc-0.11.3" || migrate_udev_mount_script
47 }
48
49 # >=openrc-0.4.0 no longer loads the udev addon
50 @@ -272,6 +272,15 @@
51 fi
52 }
53
54 +# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
55 +migrate_udev_mount_script() {
56 + if [ -e "${EROOT}"/etc/runlevels/sysinit/udev -a \
57 + ! -e "${EROOT}"/etc/runlevels/sysinit/udev-mount ]; then
58 + add_boot_init udev-mount sysinit
59 + fi
60 + return 0
61 +}
62 +
63 migrate_from_baselayout_1() {
64 # baselayout boot init scripts have been split out
65 for f in $(cd "${ED}"/usr/share/${PN}/runlevels/boot || exit; echo *) ; do