armbian-next: cleanup logging in distro-agnostic.sh; don't use install.log or such

This commit is contained in:
Ricardo Pardini 2022-10-21 15:43:45 +02:00
parent c4eaf49f3d
commit 252f96967e
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02

View File

@ -565,7 +565,7 @@ function install_distribution_agnostic() {
# `systemd-networkd.service` will be enabled by `/lib/systemd/system-preset/90-systemd.preset` during first-run.
# Mask it to avoid conflict
chroot "${SDCARD}" /bin/bash -c "systemctl mask systemd-networkd.service" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
chroot_sdcard systemctl mask systemd-networkd.service
# most likely we don't need to wait for nm to get online
chroot_sdcard systemctl disable NetworkManager-wait-online.service
@ -587,7 +587,7 @@ function install_distribution_agnostic() {
chroot_sdcard systemctl enable systemd-networkd.service systemd-resolved.service
# Mask `NetworkManager.service` to avoid conflict
chroot "${SDCARD}" /bin/bash -c "systemctl mask NetworkManager.service" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
chroot_sdcard systemctl mask NetworkManager.service
if [ -e /etc/systemd/timesyncd.conf ]; then
chroot_sdcard systemctl enable systemd-timesyncd.service