Skip to content

Commit 2dbb2fd

Browse files
committed
Removing legacy systemd configuration
Signed-off-by: Matt Farina <[email protected]>
1 parent cc59dff commit 2dbb2fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/25-guestagent-base.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ for f in $(seq 0 $((LIMA_CIDATA_MOUNTS - 1))); do
1313
done
1414

1515
# Install or update the guestagent binary
16-
rm -f /usr/local/bin/lima-guestagent
1716
install -m 755 "${LIMA_CIDATA_MNT}"/lima-guestagent /usr/local/bin/lima-guestagent
1817

1918
# Launch the guestagent service
@@ -36,5 +35,8 @@ EOF
3635
rc-update add lima-guestagent default
3736
rc-service lima-guestagent start
3837
else
38+
# Remove legacy systemd service
39+
rm -f "/home/${LIMA_CIDATA_USER}.linux/.config/systemd/user/lima-guestagent.service"
40+
3941
sudo lima-guestagent install-systemd
4042
fi

0 commit comments

Comments
 (0)