commit: 73187892e3b1ff195c127df43a63aac42fc43031 Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Tue Oct 3 17:35:54 2017 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Tue Oct 3 17:36:26 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73187892
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 0d17f0e8894..2d2293456f9 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
