From 4904f7399867fa67637c75353099d9fa40b80db6 Mon Sep 17 00:00:00 2001 From: Markus Storm Date: Mon, 20 Nov 2023 13:10:46 +0100 Subject: [PATCH] fix installer service filename on bookworm Signed-off-by: Markus Storm --- build.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.bash b/build.bash index e7d3ad8fe..de911a436 100755 --- a/build.bash +++ b/build.bash @@ -320,9 +320,10 @@ if [[ $hwPlatform == "pi-raspios32" ]] || [[ $hwPlatform == "pi-raspios64" ]]; t sed -i "s/127.0.1.1.*/127.0.1.1 $hostname/" "$buildFolder"/root/etc/hosts echo "$hostname" > "$buildFolder"/root/etc/hostname + installer=openhabian-installer.service echo_process "Injecting 'openhabian-installer.service', 'first-boot.bash' and 'openhabian.conf'... " - cp "$sourceFolder/openhabian-installer.service$release" "$buildFolder"/root/etc/systemd/system/ - ln -s "$buildFolder"/root/etc/systemd/system/openhabian-installer.service "$buildFolder"/root/etc/systemd/system/multi-user.target.wants/openhabian-installer.service + cp "${sourceFolder}/${installer}$release" "$buildFolder/root/etc/systemd/system/${installer}" + ln -s "${buildFolder}/root/etc/systemd/system/${installer}" "$buildFolder"/root/etc/systemd/system/multi-user.target.wants/${installer} # Open subshell to make sure we don't hurt the host system if for some reason $buildFolder is not properly set echo_process "Setting default runlevel multiuser.target and disabling autologin... "