sys-kernel/raspberrypi-image: drop pkg_preinst
authorAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 24 Mar 2019 21:37:24 +0000 (21:37 +0000)
committerAndrey Utkin <andrey_utkin@gentoo.org>
Mon, 25 Mar 2019 00:17:58 +0000 (00:17 +0000)
The first part of it is useless because it is about installing
config.txt and cmdline.txt, which this package doesn't do.

The second part is a check for /boot being mounted. This is done by
mount-boot eclass nowadays.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild

index dd395d591b0cec44723cee604ae2f018b9b632e7..a18735fa66e385cb07e789b08b5ec720578880e2 100644 (file)
@@ -19,29 +19,6 @@ DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt"
 
 RESTRICT="binchecks strip"
 
-pkg_preinst() {
-       if [ -z "${REPLACING_VERSIONS}" ] ; then
-               local msg=""
-               if [ -e "${D}"/boot/cmdline.txt -a -e "${ROOT}"/boot/cmdline.txt ] ; then
-                       msg+="/boot/cmdline.txt "
-               fi
-               if [ -e "${D}"/boot/config.txt -a -e "${ROOT}"/boot/config.txt ] ; then
-                       msg+="/boot/config.txt "
-               fi
-               if [ -n "${msg}" ] ; then
-                       msg="This package installs following files: ${msg}."
-                       msg="${msg} Please remove(backup) your copies during install"
-                       msg="${msg} and merge settings afterwards."
-                       msg="${msg} Further updates will be CONFIG_PROTECTed."
-                       die "${msg}"
-               fi
-       fi
-
-       if ! grep "${ROOT}boot" /proc/mounts >/dev/null 2>&1; then
-               ewarn "${ROOT}boot is not mounted, the files might not be installed at the right place"
-       fi
-}
-
 src_configure() { :; }
 
 src_compile() { :; }