build-debian: Install systemd-timesyncd

Fixes #29.
This commit is contained in:
Johan Gunnarsson 2023-03-05 18:46:11 +01:00
parent aaceab9e56
commit 0a086589e3
1 changed files with 2 additions and 0 deletions

View File

@ -124,10 +124,12 @@ chroot debian /bin/sh -ex <<- EOF
/usr/bin/apt-get -y --no-install-recommends install ${KERNEL}
/usr/bin/apt-get -y upgrade
/usr/bin/apt-get -y install systemd-resolved || :
/usr/bin/apt-get -y install systemd-timesyncd || :
/usr/bin/apt-get clean
/bin/rm -rf /var/lib/apt/lists/*
/usr/bin/systemctl enable systemd-networkd.service
/usr/bin/systemctl enable systemd-resolved.service
/usr/bin/systemctl enable systemd-timesyncd.service
/bin/rm -f /var/log/*.log
/bin/echo root:${PASSWORD} | /usr/sbin/chpasswd
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config