mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user