19 lines
618 B
Bash
19 lines
618 B
Bash
#!/usr/bin/env bash
|
|
# This script is ran within in the chroot
|
|
set -e
|
|
echo 'APT::Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retry
|
|
apt autoclean --yes
|
|
apt install linux-image-686 grub2 sudo network-manager python3 --yes
|
|
apt autoclean --yes
|
|
apt install --download-only console-setup keyboard-configuration locales tzdata --yes
|
|
rm /etc/apt/apt.conf.d/80-retry
|
|
grub-install --boot-directory="/boot" --modules=part_msdos "$LOOPNAME"
|
|
update-grub
|
|
update-initramfs -u -k all
|
|
echo ""
|
|
echo "Do any manual changes now, enter 'exit' to finish setup."
|
|
bash
|
|
if [[ -f "$HOME/.bash_history" ]]; then
|
|
rm "$HOME/.bash_history"
|
|
fi
|