Skip to content

Commit 9108e0c

Browse files
committed
Fix user provisioning scripts for Alpine
Signed-off-by: Jan Dubois <[email protected]>
1 parent af5fd10 commit 9108e0c

File tree

1 file changed

+3
-1
lines changed
  • pkg/cidata/cidata.TEMPLATE.d

1 file changed

+3
-1
lines changed

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

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

4343
USER_SCRIPT="/home/${LIMA_CIDATA_USER}.linux/.lime-user-script"
4444
if [ -d "${LIMA_CIDATA_MNT}"/provision.user ]; then
45-
until [ -e "/run/user/${LIMA_CIDATA_UID}/systemd/private" ]; do sleep 3; done
45+
if [ ! -f /etc/alpine-release ]; then
46+
until [ -e "/run/user/${LIMA_CIDATA_UID}/systemd/private" ]; do sleep 3; done
47+
fi
4648
for f in "${LIMA_CIDATA_MNT}"/provision.user/*; do
4749
INFO "Executing $f (as user ${LIMA_CIDATA_USER})"
4850
cp "$f" "${USER_SCRIPT}"

0 commit comments

Comments
 (0)