Skip to content

Commit 2c84e0c

Browse files
authored
Merge pull request #3233 from mook-as/wsl/lima-cidata
WSL: Create symlink at /mnt/lima-cidata
2 parents b28413f + 4acc2fd commit 2c84e0c

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)