From 21b8626e4c4ffd42bc2ec15bc8ac1b519f2643bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Mon, 24 Oct 2022 09:05:23 +0200 Subject: [PATCH] Disable hostapd service as it might not always be configured (#4327) --- lib/functions/rootfs/distro-specific.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/functions/rootfs/distro-specific.sh b/lib/functions/rootfs/distro-specific.sh index e50ebb0a3..0161574f7 100644 --- a/lib/functions/rootfs/distro-specific.sh +++ b/lib/functions/rootfs/distro-specific.sh @@ -2,15 +2,16 @@ install_distribution_specific() { display_alert "Applying distribution specific tweaks for" "$RELEASE" "info" + # disable broken service + # the problem is in default misconfiguration + chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload disable smartmontools.service >/dev/null 2>&1" + chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload disable smartd.service >/dev/null 2>&1" + + # disable hostapd as it needs to be configured + chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload disable hostapd.service >/dev/null 2>&1" + case $RELEASE in - sid) - - # (temporally) disable broken service - chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload disable smartmontools.service >/dev/null 2>&1" - - ;; - focal | jammy) # by using default lz4 initrd compression leads to corruption, go back to proven method