This commit is contained in:
2025-07-04 07:52:11 -07:00
parent dce0ab9eb1
commit b5a2884ed2
2 changed files with 18 additions and 3 deletions

View File

@@ -1,4 +1,18 @@
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
echo "[CHROOT] Updating apt and setting locale..."
apt-get update
apt-get install -y locales
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
locale-gen
export LANG=en_US.UTF-8
echo "[CHROOT] Installing python3-cryptography safely..."
apt-get install -y python3-cryptography
echo "[CHROOT] Configuring Debian system..."
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/10-assume_yes
@@ -10,9 +24,10 @@ echo "[CHROOT] Removing unnecessary packages..."
apt-get remove --purge --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode || true
echo "[CHROOT] Cleaning up..."
apt-get clean
dpkg --configure -a
apt-get install -f
find /var/lib/apt/lists/ -type f -delete
apt-get clean
rm -rf /var/lib/apt/lists/*
echo "[CHROOT] Done. Type 'exit' to return."
exit