diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-20 12:58:01 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-01-20 12:58:01 +0000 |
commit | 95c0dfaa60c4e77eaf1c17da9c8ec4ce752749b3 (patch) | |
tree | 0ec03c27aa9df56bf95b809c2b08a16c62399ba6 /run-bootstrap-in-chroot | |
parent | 8f95ec098988b0fe62bdf64061876fd22ff00432 (diff) | |
download | morph-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-x | run-bootstrap-in-chroot | 6 |
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 |