sys-fs/static-dev: fix ROOT check for EAPI 7

Closes: https://bugs.gentoo.org/795285
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-06-10 21:02:28 +00:00
parent 4265a4985e
commit ca38032064

View File

@@ -30,7 +30,7 @@ pkg_pretend() {
fi
# We also want to not clobber newer devtmpfs setups.
if [[ ${ROOT} == "/" ]] && \
if [[ -z ${ROOT} ]] && \
! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
abort
fi