Split [debian.sh] into multiple scripts inside a [debian] directory, adjusted references in other files to reflect changes
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
#!/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-generic \
|
||||
systemd-timesyncd \
|
||||
whois \
|
||||
zfsutils-linux
|
||||
Reference in New Issue
Block a user