mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-18 13:33:55 +08:00
ubuntu 22.04
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
# ###### Base ###### #
|
||||
# ################## #
|
||||
FROM scratch AS agnos-base
|
||||
ADD ubuntu-base-20.04.1-base-arm64.tar.gz /
|
||||
ADD ubuntu-base-22.04-base-arm64.tar.gz /
|
||||
|
||||
# Add aarch64 and arm support
|
||||
COPY --from=multiarch/qemu-user-static:x86_64-aarch64 /usr/bin/qemu-aarch64-static /usr/bin
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
UBUNTU_BASE_URL="http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release"
|
||||
UBUNTU_FILE="ubuntu-base-20.04.1-base-arm64.tar.gz"
|
||||
UBUNTU_BASE_URL="http://cdimage.ubuntu.com/ubuntu-base/releases/22.04/release"
|
||||
UBUNTU_FILE="ubuntu-base-22.04-base-arm64.tar.gz"
|
||||
|
||||
export DOCKER_BUILDKIT=1
|
||||
|
||||
|
||||
+10
-11
@@ -8,6 +8,14 @@ HOST=comma
|
||||
touch /TICI
|
||||
touch /AGNOS
|
||||
|
||||
# Add armhf as supported architecture
|
||||
dpkg --add-architecture armhf
|
||||
|
||||
# Install packages
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -yq locales systemd adduser
|
||||
|
||||
# Create privileged user
|
||||
useradd -G sudo -m -s /bin/bash $USERNAME
|
||||
echo "$USERNAME:$PASSWD" | chpasswd
|
||||
@@ -21,14 +29,6 @@ adduser $USERNAME gpu
|
||||
adduser $USERNAME audio
|
||||
adduser $USERNAME disk
|
||||
adduser $USERNAME dialout
|
||||
|
||||
# Add armhf as supported architecture
|
||||
dpkg --add-architecture armhf
|
||||
|
||||
# Install packages
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -yq locales systemd
|
||||
adduser $USERNAME systemd-journal
|
||||
|
||||
# Enable serial console on UART
|
||||
@@ -85,8 +85,6 @@ apt-get install --no-install-recommends -yq \
|
||||
network-manager \
|
||||
nvme-cli \
|
||||
openssl \
|
||||
python-dev \
|
||||
python-setuptools \
|
||||
smartmontools \
|
||||
speedtest-cli \
|
||||
ssh \
|
||||
@@ -112,8 +110,9 @@ echo "makestep 0.1 3" >> /etc/chrony/chrony.conf
|
||||
mkdir /data && chown $USERNAME:$USERNAME /data
|
||||
mkdir /persist && chown $USERNAME:$USERNAME /persist
|
||||
|
||||
# TODO: this is from 20.04, does it have a replacement?
|
||||
# Disable automatic ondemand switching from ubuntu
|
||||
systemctl disable ondemand
|
||||
#systemctl disable ondemand
|
||||
|
||||
# Disable pstore service that moves files out of /sys/fs/pstore
|
||||
systemctl disable systemd-pstore.service
|
||||
|
||||
Reference in New Issue
Block a user