toes-image-builder/scripts/build-in-chroot.sh
2026-05-13 20:23:09 +00:00

50 lines
939 B
Bash
Executable File

#! /bin/bash
set -ex
# runs _inside_ the image, under qemu arm64.
echo "====> mounting"
sudo chroot mnt/root /bin/bash
echo "====> updating apt"
apt-get update
echo "====> installing apt packages"
apt-get install -y \
ca-certificates \
curl \
jq \
git \
locales \
network-manager \
pkg-config \
libdbus-1-dev \
avahi-daemon \
avahi-utils \
libavahi-client-dev \
bluez \
build-essential \
python3-dev \
python3-pip \
sox \
alsa-utils \
libasound2-plugins \
swh-plugins \
i2c-tools \
device-tree-compiler \
unzip \
"linux-modules-$(uname -r)"
# setup locale
locale-gen en_US.UTF-8
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
echo "====> installing rgbled"
curl -fsSL https://git.nose.space/nakajima/rgbled/releases/download/v0.1.1/install.sh | bash
echo "====> installing bun"
curl -fsSL https://bun.com/install | bash
echo "====> installing baudy"
cd /tmp
git clone https://git.nose.space/nakajima/baudy