From 73187892e3b1ff195c127df43a63aac42fc43031 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 3 Oct 2017 12:35:54 -0500 Subject: [PATCH] sys-apps/baselayout: 2.4.1-r2: fix tmpfs warning bug: https://bugs.gentoo.org/show_bug.cgi?id=633360 Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- sys-apps/baselayout/baselayout-2.4.1-r2.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys-apps/baselayout/baselayout-2.4.1-r2.ebuild b/sys-apps/baselayout/baselayout-2.4.1-r2.ebuild index 0d17f0e8894a..2d2293456f95 100644 --- a/sys-apps/baselayout/baselayout-2.4.1-r2.ebuild +++ b/sys-apps/baselayout/baselayout-2.4.1-r2.ebuild @@ -224,10 +224,12 @@ pkg_postinst() { if use kernel_linux; then mkdir -p "${EROOT}"run - if ! grep -qs "^tmpfs.*/run " "${ROOT}"proc/mounts ; then - echo - ewarn "You should reboot the system now to get /run mounted with tmpfs!" - fi + local found + while read -r _ mountpoint fstype _; do + [[ ${mountpoint} = /run ]] && [[ ${fstype} = tmpfs ]] && found=1 + done < "${ROOT}"proc/mounts + [[ -z ${found} ]] && + ewarn "You should reboot now to get /run mounted with tmpfs!" fi for x in ${REPLACING_VERSIONS}; do -- 2.26.2