Skip to content

Commit 6b4315c

Browse files
committed
Ensure the guestagent for the current version of lima is installed
The -f flag is used on rm to ensure no returned error if the file is not found. This would happen on the first run. Signed-off-by: Matt Farina <[email protected]>
1 parent 9bd9458 commit 6b4315c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ 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
1617
install -m 755 "${LIMA_CIDATA_MNT}"/lima-guestagent /usr/local/bin/lima-guestagent
1718

1819
# Launch the guestagent service

0 commit comments

Comments
 (0)