summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-13 10:22:45 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-13 10:22:45 +0000
commitc0a0cf761452be65b81c84671633c510fb4a8cdf (patch)
tree7b76fb2ebc8df150827ec455aeb1cb0a7824b40b /run-bootstrap-in-chroot
parentcfa298f160a764676594de80a8324a6dff50f465 (diff)
downloadmorph-c0a0cf761452be65b81c84671633c510fb4a8cdf.tar.gz
Make the parameter to run-bootstrap-in-chroot not be optional
It is confusing to have a default, especially since it doesn't actually work anymore.
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot14
1 files changed, 7 insertions, 7 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot
index 397a0c14..4d3ab0d5 100755
--- a/run-bootstrap-in-chroot
+++ b/run-bootstrap-in-chroot
@@ -12,15 +12,15 @@ export LC_ALL=C
if [ "x$1" = x ]
then
- dir="squeeze-chroot"
- snapshot=false
-else
- mkdir -p "$1"
- dir="$1/squeeze-chroot"
- snapshot=true
- snapshotdir="$1"
+ echo "Usage: $0 chroot-dir" 1>&2
+ exit 1
fi
+mkdir -p "$1"
+dir="$1/squeeze-chroot"
+snapshot=true
+snapshotdir="$1"
+
cat >"./do-squeeze-chroot" <<EOF
#!/bin/sh
if mount -t proc proc "$dir/proc"; then