toolchain/scripts/packages-install

22 lines
443 B
Plaintext
Raw Normal View History

2023-01-28 00:05:03 +00:00
#!/usr/bin/env bash
set -e;
ARCH=$(uname -m)
cp -R /config/* /etc/apt/
2023-01-28 00:05:03 +00:00
cat <<-EOF > /etc/apt/sources.list
deb [trusted=yes] file:///fetch apt/
EOF
rm /etc/apt/sources.list.d/*
2023-01-28 00:05:03 +00:00
apt update -o Acquire::Check-Valid-Until=false
2023-01-28 00:05:03 +00:00
apt-get install \
--allow-downgrades \
-y $(cat /etc/apt/apt-pins-${ARCH}.list)
2023-01-28 00:05:03 +00:00
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;
2023-04-13 21:20:55 +00:00
echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers