summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-20 12:58:01 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-20 12:58:01 +0000
commit95c0dfaa60c4e77eaf1c17da9c8ec4ce752749b3 (patch)
tree0ec03c27aa9df56bf95b809c2b08a16c62399ba6 /run-bootstrap-in-chroot
parent8f95ec098988b0fe62bdf64061876fd22ff00432 (diff)
downloadmorph-95c0dfaa60c4e77eaf1c17da9c8ec4ce752749b3.tar.gz
Do not put contents of proc, sys in snapshot tarball
Do, however, put the actual dirs in the tarball.
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot6
1 files changed, 5 insertions, 1 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot
index 38685992..bb1b51c5 100755
--- a/run-bootstrap-in-chroot
+++ b/run-bootstrap-in-chroot
@@ -62,7 +62,11 @@ elif [ "$snapshot" = yes ]
then
if chroot "$dir" bash -x baserock-bootstrap yes
then
- if tar -C "$dir" -caf "$snapshotdir/pass1-snapshot.tar" .
+ if umount "$dir/proc" &&
+ umount "$dir/sys" &&
+ tar -C "$dir" -caf "$snapshotdir/pass1-snapshot.tar" .
+ mount -t proc proc "$dir/proc" &&
+ mount -t proc proc "$dir/proc"
then
if chroot "$dir" bash -x baserock-bootstrap no
then