Skip to content

Commit 0761563

Browse files
authored
Merge pull request #288 from afbjorklund/openrc
Check for openrc-init instead of alpine-release
2 parents 7aa8498 + 8b5eb5b commit 0761563

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242

4343
USER_SCRIPT="/home/${LIMA_CIDATA_USER}.linux/.lima-user-script"
4444
if [ -d "${LIMA_CIDATA_MNT}"/provision.user ]; then
45-
if [ ! -f /etc/alpine-release ]; then
45+
if [ ! -f /sbin/openrc-init ]; then
4646
until [ -e "/run/user/${LIMA_CIDATA_UID}/systemd/private" ]; do sleep 3; done
4747
fi
4848
for f in "${LIMA_CIDATA_MNT}"/provision.user/*; do

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ done
1616
install -m 755 "${LIMA_CIDATA_MNT}"/lima-guestagent /usr/local/bin/lima-guestagent
1717

1818
# Launch the guestagent service
19-
if [ -f /etc/alpine-release ]; then
19+
if [ -f /sbin/openrc-init ]; then
2020
# Install the openrc lima-guestagent service script
2121
cat >/etc/init.d/lima-guestagent <<'EOF'
2222
#!/sbin/openrc-run

0 commit comments

Comments
 (0)