From: "Mike Frysinger (vapier)" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: mount-boot.eclass
Date: Fri, 09 Oct 2009 20:57:09 +0000 [thread overview]
Message-ID: <E1MwMWT-0001Ya-08@stork.gentoo.org> (raw)
vapier 09/10/09 20:57:08
Modified: mount-boot.eclass
Log:
fix from Lars Wendler (Polynomial-C) to make sure /boot has a .keep file so portage doesnt go deleting the "empty" /boot mount point #274130 by Jochums Johannes
Revision Changes Path
1.17 eclass/mount-boot.eclass
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mount-boot.eclass?rev=1.17&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mount-boot.eclass?rev=1.17&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mount-boot.eclass?r1=1.16&r2=1.17
Index: mount-boot.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mount-boot.eclass 27 Feb 2009 01:53:34 -0000 1.16
+++ mount-boot.eclass 9 Oct 2009 20:57:08 -0000 1.17
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.16 2009/02/27 01:53:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.17 2009/10/09 20:57:08 vapier Exp $
#
# This eclass is really only useful for bootloaders.
#
@@ -10,14 +10,14 @@
#
# MAINTAINER: base-system@gentoo.org
-EXPORT_FUNCTIONS pkg_preinst
+EXPORT_FUNCTIONS pkg_preinst pkg_prerm
mount-boot_mount_boot_partition() {
if [[ -n ${DONT_MOUNT_BOOT} ]] ; then
return
else
elog
- elog "To avoid automounting and autoinstalling with /boot,"
+ elog "To avoid automounting and auto(un)installing with /boot,"
elog "just export the DONT_MOUNT_BOOT variable."
elog
fi
@@ -72,3 +72,9 @@
mount-boot_pkg_preinst() {
mount-boot_mount_boot_partition
}
+
+mount-boot_pkg_prerm() {
+ touch "${ROOT}"/boot/.keep 2>/dev/null
+ mount-boot_mount_boot_partition
+ touch "${ROOT}"/boot/.keep 2>/dev/null
+}
next reply other threads:[~2009-10-09 20:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 20:57 Mike Frysinger (vapier) [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-07-30 7:16 [gentoo-commits] gentoo-x86 commit in eclass: mount-boot.eclass Mike Frysinger (vapier)
2015-07-30 7:14 Mike Frysinger (vapier)
2015-07-30 7:03 Mike Frysinger (vapier)
2015-07-30 7:00 Mike Frysinger (vapier)
2015-07-30 6:53 Mike Frysinger (vapier)
2011-01-09 3:18 Mike Frysinger (vapier)
2009-02-27 1:53 Mike Frysinger (vapier)
2008-11-27 18:36 Mike Frysinger (vapier)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1MwMWT-0001Ya-08@stork.gentoo.org \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox