Skip to content

Commit 4acc2fd

Browse files
committed
WSL: Create symlink at /mnt/lima-cidata
Previously we only copied a single file to /mnt/lima-cidata, just enough to pass the requirements check. However, that means various other places that hard-codes /mnt/lima-cidata does not resolve correctly. Replace it with a symlink instead so all files (in particular, param.env) can be accessed. Signed-off-by: Mark Yen <[email protected]>
1 parent cb99e9f commit 4acc2fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/02-wsl2-setup.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ sudo chown "${LIMA_CIDATA_USER}" "${LIMA_CIDATA_HOME}"/.ssh/authorized_keys
1212
# add $LIMA_CIDATA_USER to sudoers
1313
echo "${LIMA_CIDATA_USER} ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/99_lima_sudoers
1414

15-
# copy some CIDATA to the hardcoded path for requirement checks (TODO: make this not hardcoded)
16-
sudo mkdir -p /mnt/lima-cidata
17-
sudo cp "${LIMA_CIDATA_MNT}"/meta-data /mnt/lima-cidata/meta-data
15+
# symlink CIDATA to the hardcoded path for requirement checks (TODO: make this not hardcoded)
16+
sudo ln -sfFn "${LIMA_CIDATA_MNT}" /mnt/lima-cidata

0 commit comments

Comments
 (0)