# HG changeset patch # User Rob Landley # Date 1261290737 21600 # Node ID abff74b958a124694e5b62f6bad4becb4a10625d # Parent 609bc05b0d6a13d7b807165ae85fa5dfffc4a5aa Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH. diff -r 609bc05b0d6a -r abff74b958a1 run-from-build.sh --- a/run-from-build.sh Sat Dec 19 00:51:16 2009 -0600 +++ b/run-from-build.sh Sun Dec 20 00:32:17 2009 -0600 @@ -2,6 +2,8 @@ # Grab cross compiler (for distcc) and run development environment. -export PATH="$(pwd)/build/host:$(pwd)/build/cross-compiler-$1/bin:$PATH" && -cd build/system-image-"$1" && -./dev-environment.sh +export PATH="$(pwd)/build/host:$(pwd)/build/cross-compiler-$1/bin:$PATH" + +# Run development environment. + +cd build/system-image-"$1" && ./dev-environment.sh diff -r 609bc05b0d6a -r abff74b958a1 sources/toys/run-emulator.sh --- a/sources/toys/run-emulator.sh Sat Dec 19 00:51:16 2009 -0600 +++ b/sources/toys/run-emulator.sh Sun Dec 20 00:32:17 2009 -0600 @@ -24,6 +24,9 @@ if [ ! -z "$HDBMEGS" ] then + # Some distros don't put /sbin:/usr/sbin in the $PATH for non-root users. + [ -z "$(which mke2fs)" ] && export PATH=/sbin:/usr/bin:$PATH + dd if=/dev/zero of="$HDB" bs=1024 seek=$[$HDBMEGS*1024-1] count=1 && mke2fs -b 1024 -F "$HDB" -i 4096 && tune2fs -j -c 0 -i 0 "$HDB"