summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot15
1 files changed, 8 insertions, 7 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot
index c934bc1b..5f5e4eee 100755
--- a/run-bootstrap-in-chroot
+++ b/run-bootstrap-in-chroot
@@ -124,7 +124,14 @@ if ! "$snapshot" || ! has_pass pass1a; then
--include=autopoint,automake,gettext,libtool,help2man \
--include=texinfo,sudo,ccache,gperf \
squeeze "$dir" "$DEBIAN_MIRROR"
-
+
+ mkdir -p "$dir/etc"
+ hostname > "$dir/etc/hostname"
+ cat <<EOF > "$dir/etc/hosts"
+127.0.0.1 localhost
+127.0.1.1 `hostname`
+EOF
+
# create the directory for cached ccache object files
mkdir -p "$dir/var/tmp/ccache"
@@ -148,12 +155,6 @@ EOF
fi
fi
-hostname > "$dir/etc/hostname"
-cat <<EOF > "$dir/etc/hosts"
-127.0.0.1 localhost
-127.0.1.1 `hostname`
-EOF
-
# Unpack existing snapshot, or run pass1 of bootstrap and then make snapshot.
if ! "$snapshot" || ! has_pass pass1b