Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: mount-boot.eclass
Date: Thu, 30 Jul 2015 07:03:19
Message-Id: 20150730070314.CDB81111@oystercatcher.gentoo.org
1 vapier 15/07/30 07:03:14
2
3 Modified: mount-boot.eclass
4 Log:
5 do not attempt to mount /boot when installing packages into a different root #532264 by Michał Górny
6
7 Revision Changes Path
8 1.21 eclass/mount-boot.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mount-boot.eclass?rev=1.21&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mount-boot.eclass?rev=1.21&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mount-boot.eclass?r1=1.20&r2=1.21
13
14 Index: mount-boot.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v
17 retrieving revision 1.20
18 retrieving revision 1.21
19 diff -u -r1.20 -r1.21
20 --- mount-boot.eclass 30 Jul 2015 07:00:40 -0000 1.20
21 +++ mount-boot.eclass 30 Jul 2015 07:03:14 -0000 1.21
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2015 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.20 2015/07/30 07:00:40 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.21 2015/07/30 07:03:14 vapier Exp $
27
28 # @ECLASS: mount-boot.eclass
29 # @MAINTAINER:
30 @@ -16,6 +16,11 @@
31 EXPORT_FUNCTIONS pkg_preinst pkg_postinst pkg_prerm pkg_postrm
32
33 mount-boot_mount_boot_partition() {
34 + # Since this eclass only deals with /boot, skip things when ROOT is active.
35 + if [[ "${ROOT:-/}" != "/" ]] ; then
36 + return
37 + fi
38 +
39 if [[ -n ${DONT_MOUNT_BOOT} ]] ; then
40 return
41 else