Backend: put debugging down where it belongs too

This commit is contained in:
osm0sis committed 2020-01-26 10:34:27 -04:00
1 parent 062b44c75a
commit b772cca3ac
1 file changed
+9 -9
+9 -9
View File
@@ -132,15 +132,6 @@ umount_all() {
$BB umount -l /data;
fi) 2>/dev/null;
}
debugging() {
case $(basename "$ZIPFILE" .zip) in
*-debugging)
ui_print " " "Creating debugging archive in $DIR...";
test -f /tmp/recovery.log && local log=/tmp/recovery.log;
$BB tar -czf "$DIR/anykernel3-$(date +%Y-%m-%d_%H%M%S)-debug.tgz" $AKHOME $log;
;;
esac;
}
setup_env() {
$BOOTMODE || $BB mount -o bind /dev/urandom /dev/random;
umount_all;
@@ -179,6 +170,15 @@ restore_env() {
done;
$BB umount -l /dev/random) 2>/dev/null;
}
debugging() {
case $(basename "$ZIPFILE" .zip) in
*-debugging)
ui_print " " "Creating debugging archive in $DIR...";
test -f /tmp/recovery.log && local log=/tmp/recovery.log;
$BB tar -czf "$DIR/anykernel3-$(date +%Y-%m-%d_%H%M%S)-debug.tgz" $AKHOME $log;
;;
esac;
}
cleanup() {
cd $(dirname $AKHOME);
rm -rf $AKHOME;