Skip to content

Commit 7c19693

Browse files
committed
convert lima.env to conf.d/lima-guestagent
Signed-off-by: Songpon Srisawai <[email protected]>
1 parent 835263d commit 7c19693

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ install -m 755 "${LIMA_CIDATA_MNT}"/lima-guestagent "${LIMA_CIDATA_GUEST_INSTALL
2222

2323
# Launch the guestagent service
2424
if [ -f /sbin/openrc-run ]; then
25+
# Export LIMA_CIDATA_* for service
26+
awk -F= '{ print $1 "=\"" $2 "\"" }' "${LIMA_CIDATA_MNT}/lima.env" >"/etc/conf.d/lima-guestagent"
2527
# Install the openrc lima-guestagent service script
2628
cat >/etc/init.d/lima-guestagent <<'EOF'
2729
#!/sbin/openrc-run

0 commit comments

Comments
 (0)