summaryrefslogtreecommitdiff
path: root/hooks/build-os/10-apt
blob: 65c7056340b7cf64096dc4d380619234f3cdb1c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash -xe
set -o pipefail

# Enable additional sources
cat > "${root:?}"/etc/apt/sources.list << EOF
deb https://deb.debian.org/debian trixie main contrib non-free non-free-firmware

deb https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware

deb https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
EOF

# update/upgrade system
chroot "${root:?}" apt-get update
chroot "${root:?}" apt-get upgrade