Skip to content
Snippets Groups Projects
Commit d0fd4d07 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Arch Linux: drop debug code, cleanup cruft, exit on cleanup()

parent b24eb8f5
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,9 @@ bootstrap() {
exit 1
fi
if [ -f "archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz" ]; then
rm "archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz"
fi
if [ ! -f "archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz" ]; then
BOOTSTRAP_TAR_GZ="$BOOTSTRAP_DATE/archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz"
echo "$(date -u) - downloading Arch Linux bootstrap.tar.gz."
......@@ -47,10 +50,6 @@ bootstrap() {
sudo rm -rf --one-file-system "$SCHROOT_BASE/$TARGET.old"
rm archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz
else
echo 'debug output:'
pwd
ls "archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz"
fi
# write the schroot config
......@@ -73,6 +72,7 @@ cleanup() {
rm -rf --one-file-system $SCHROOT_TARGET || ( echo "Warning: $SCHROOT_TARGET could not be fully removed on forced cleanup." ; ls $SCHROOT_TARGET -la )
fi
rm -f $TMPLOG
exit 0
}
#SCHROOT_TARGET=$(mktemp -d -p $SCHROOT_BASE/ archlinuxrb-setup-$TARGET-XXXX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment