Skip to content

Commit

Permalink
Removing legacy systemd configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Farina <[email protected]>
  • Loading branch information
mattfarina committed Sep 16, 2021
1 parent cc59dff commit 2dbb2fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cidata/cidata.TEMPLATE.d/boot/25-guestagent-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ for f in $(seq 0 $((LIMA_CIDATA_MOUNTS - 1))); do
done

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

# Launch the guestagent service
Expand All @@ -36,5 +35,8 @@ EOF
rc-update add lima-guestagent default
rc-service lima-guestagent start
else
# Remove legacy systemd service
rm -f "/home/${LIMA_CIDATA_USER}.linux/.config/systemd/user/lima-guestagent.service"

sudo lima-guestagent install-systemd
fi

0 comments on commit 2dbb2fd

Please sign in to comment.