changeset 1194:2c4a65636d72

Apparently gentoo has mke2fs in a normal user's path, but not tune2fs. Sigh.
author Rob Landley <rob@landley.net>
date Thu, 05 Aug 2010 12:08:25 -0500
parents 6173bb6f3b2c
children 41fdac77a907
files sources/toys/dev-environment.sh
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/toys/dev-environment.sh	Thu Aug 05 12:08:02 2010 -0500
+++ b/sources/toys/dev-environment.sh	Thu Aug 05 12:08:25 2010 -0500
@@ -34,7 +34,10 @@
     [ -z "$HDBMEGS" ] && HDBMEGS=2048
 
     # Some distros don't put /sbin:/usr/sbin in the $PATH for non-root users.
-    [ -z "$(which  mke2fs)" ] && export PATH=/sbin:/usr/bin:$PATH
+    if [ -z "$(which  mke2fs)" ] || [ -z "$(which tune2fs)" ]
+    then
+      export PATH=/sbin:/usr/bin:$PATH
+    fi
 
     dd if=/dev/zero of="$HDB" bs=1024 seek=$[$HDBMEGS*1024-1] count=1 &&
     mke2fs -q -b 1024 -F "$HDB" -i 4096 &&