eclass/mount-boot: Sync with Gentoo

It's from Gentoo commit 2cba2db27919bc449ed2a7bf7ed3259c6b96e65f.
This commit is contained in:
Krzesimir Nowak 2023-07-28 12:57:47 +02:00
parent 198288b003
commit 7f90d55ce0

View File

@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# @ECLASS: mount-boot.eclass # @ECLASS: mount-boot.eclass
@ -13,13 +13,11 @@
# function tries to ensure that it's mounted in rw mode, exiting with an # function tries to ensure that it's mounted in rw mode, exiting with an
# error if it can't. It does nothing if /boot isn't a separate partition. # error if it can't. It does nothing if /boot isn't a separate partition.
case ${EAPI:-0} in case ${EAPI} in
6|7|8) ;; 6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac esac
EXPORT_FUNCTIONS pkg_pretend pkg_preinst pkg_postinst pkg_prerm pkg_postrm
# @FUNCTION: mount-boot_is_disabled # @FUNCTION: mount-boot_is_disabled
# @INTERNAL # @INTERNAL
# @DESCRIPTION: # @DESCRIPTION:
@ -111,3 +109,5 @@ mount-boot_pkg_prerm() {
mount-boot_pkg_postinst() { :; } mount-boot_pkg_postinst() { :; }
mount-boot_pkg_postrm() { :; } mount-boot_pkg_postrm() { :; }
EXPORT_FUNCTIONS pkg_pretend pkg_preinst pkg_postinst pkg_prerm pkg_postrm