Skip to content

Commit 9b634d1

Browse files
authored
Merge pull request #229 from rancher-sandbox/user-provisioning
Fix user provisioning scripts for Alpine
2 parents af5fd10 + 9108e0c commit 9b634d1

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)