--- chromium-5.0.307.9.ebuild.orig 2010-02-19 16:36:46.000000000 +0100 +++ chromium-5.0.307.9.ebuild 2010-02-26 13:22:12.000000000 +0100 @@ -40,20 +40,19 @@ >=dev-util/pkgconfig-0.23 sys-devel/flex" -pkg_setup() { +pkg_preinst() { # Prevent user problems like bug 299777. - if ! grep -q /dev/shm <<< $(get_mounts); then - eerror "You don't have tmpfs mounted at /dev/shm." - eerror "${PN} isn't going to work in that configuration." - eerror "Please uncomment the /dev/shm entry in /etc/fstab," - eerror "run 'mount /dev/shm' and try again." - die "/dev/shm is not mounted" - fi - if [ `stat -c %a /dev/shm` -ne 1777 ]; then - eerror "/dev/shm does not have correct permissions." - eerror "${PN} isn't going to work in that configuration." - eerror "Please run chmod 1777 /dev/shm and try again." - die "/dev/shm has incorrect permissions" + if [[ ${ROOT} == / ]]; then + if [[ ! grep -q /dev/shm <<< $(get_mounts) ]]; then + ewarn "You don't have tmpfs mounted at /dev/shm." + ewarn "${PN} isn't going to work in that configuration." + ewarn "To fix this, please uncomment the /dev/shm entry" + ewarn "in /etc/fstab and run 'mount /dev/shm'." + fi + if [[ $(stat -c %a /dev/shm) != 1777 ]]; then + ewarn "/dev/shm does not have correct permissions." + ewarn "${PN} isn't going to work in that configuration." + ewarn "Please run chmod 1777 /dev/shm to fix this." fi elog "${PN} might crash occasionally. To get more useful backtraces"