packer: update build system
Adding TPM tooling, dnsmasq.
This commit is contained in:
@@ -2,13 +2,20 @@
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
echo "==> Setting nameserver"
|
||||
echo "[+] setting nameserver"
|
||||
rm /etc/resolv.conf
|
||||
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
|
||||
|
||||
echo "==> installing base updates"
|
||||
echo "[+] installing base packages"
|
||||
apt-get -y update
|
||||
apt-get -y install ansible apt-transport-https ca-certificates rng-tools
|
||||
|
||||
echo "[+] installing TPM tooling"
|
||||
apt-get -y install libtpms-dev tpm2-tools tss2
|
||||
|
||||
echo "[+] removing unused packages"
|
||||
apt-get -y remove fake-hwclock snapd
|
||||
|
||||
echo "[+] cleaning apt install"
|
||||
apt-get -y clean
|
||||
apt-get -y autoremove
|
||||
@@ -2,4 +2,10 @@
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
apt-get -y install picocom wpasupplicant
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
echo "[+] installing cdev node packages"
|
||||
apt-get --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y install dnsmasq picocom wpasupplicant
|
||||
|
||||
echo "[+] installing tailscale"
|
||||
curl -fsSL https://tailscale.com/install.sh | sh
|
||||
Reference in New Issue
Block a user