blob: a4b81ffe737404d12337ef51c18ea4f5f417817c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash -xe
set -o pipefail
# Append to motd
cat >> "${root:?}"/etc/motd << EOF
${osname:?}/${osversion:?}/${build:?}/${buildenv:?}/${arch:?} (${osdesc:?}) v${version:?}
EOF
# Set hostname
echo "${osname:?}-${osversion:?}-${build:?}-${buildenv:?}" > "${root:?}"/etc/hostname
echo "127.0.1.1 ${osname:?}-${osversion:?}-${build:?}-${buildenv:?}" >> "${root:?}"/etc/hosts
echo "Etc/UTC" > "${root:?}"/etc/localtime
# Disable wait
chroot "$root" systemctl disable systemd-networkd-wait-online.service
|