Image Builder Fix and Chroot Changes

Fix for Image Update not including env changes.
Added python-is-python3 python3.10-venv to aid in python development.
Added software-properties-common so we can take advantage of the new Meshtastic PPA.
This commit is contained in:
Ruledo 2025-01-07 22:27:04 -08:00
parent c74fd11d4f
commit cba28a8eb7
2 changed files with 4 additions and 3 deletions

View file

@ -27,7 +27,7 @@ ln -sf /usr/share/zoneinfo/UTC /etc/localtime
echo "Installing packages..."
apt update
DEBIAN_FRONTEND=noninteractive apt install -y --option Dpkg::Options::="--force-confold" linux-firmware wireless-tools git python3.10-venv libgpiod-dev libyaml-cpp-dev libbluetooth-dev openssl libssl-dev libulfius-dev liborcania-dev evtest screen avahi-daemon protobuf-compiler telnet fonts-noto-color-emoji ninja-build chrony qrencode
DEBIAN_FRONTEND=noninteractive apt install -y --option Dpkg::Options::="--force-confold" linux-firmware wireless-tools git python3.10-venv libgpiod-dev libyaml-cpp-dev libbluetooth-dev openssl libssl-dev libulfius-dev liborcania-dev evtest screen avahi-daemon protobuf-compiler telnet fonts-noto-color-emoji ninja-build chrony qrencode software-properties-common python-is-python3 python3.10-venv
if [[ $? -eq 2 ]]; then echo "Error, step failed..."; fi
DEBIAN_FRONTEND=noninteractive apt upgrade -y --option Dpkg::Options::="--force-confold"
@ -93,4 +93,4 @@ usermod -a -G dialout femto
echo "Cleaning up chroot..."
apt clean && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* && rm -rf /var/tmp/* && find /var/log -type f -exec truncate -s 0 {} + && : > /root/.bash_history && history -c
exit
exit

View file

@ -227,10 +227,11 @@ inject_chroot() {
build_rootfs
build_firmware
create_image
}
update_image() {
build_env
echo "Updating repo..."
cd /home/${sudoer}/femtofox
git pull