Skip to content

Commit dce44dd

Browse files
committed
wip: workaround self sufficient check for crc
1 parent db695a7 commit dce44dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

createdisk.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@ fi
170170
install_additional_packages ${VM_IP}
171171
copy_systemd_units
172172

173+
# Create marker file with default value expected by systemd units
174+
# CRC_SELF_SUFFICIENT=0 to ensure bundle works with CRC without a
175+
# cloud-init configuration
176+
${SSH} core@${VM_IP} 'sudo bash -x -s' <<EOF
177+
tee /etc/sysconfig/crc-env <<TEE
178+
CRC_SELF_SUFFICIENT=0
179+
TEE
180+
EOF
181+
182+
173183
cleanup_vm_image ${VM_NAME} ${VM_IP}
174184

175185
# Enable cloud-init service

0 commit comments

Comments
 (0)