Mercurial > hg > aboriginal
diff sources/toys/dev-environment.sh @ 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 | 94b0b4ef1157 |
children | 214b23b707b0 |
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 &&