29 lines
527 B
Bash
Executable File
29 lines
527 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
source \
|
|
/etc/os-release
|
|
|
|
|
|
if [[ "${ID}" == 'debian' ]] && [[ ! "$(hostname)" == "debian-live" ]]; then
|
|
cat << EOF | tee /etc/apt/sources.list.d/contrib.sources 1> /dev/null
|
|
Enabled: yes
|
|
Types: deb
|
|
URIs: http://deb.debian.org/debian/
|
|
Suites: ${VERSION_CODENAME}
|
|
Components: contrib
|
|
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
EOF
|
|
fi
|
|
|
|
apt \
|
|
--update \
|
|
install \
|
|
--yes \
|
|
mmdebstrap \
|
|
gdisk \
|
|
linux-headers-$(uname -r) \
|
|
systemd-timesyncd \
|
|
whois \
|
|
zfsutils-linux
|