Skip to content

Commit 30d9197

Browse files
committed
MiOSv0.2.0 - Fix devcontainer absolute path
1 parent c39172e commit 30d9197

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"mounts": [
3131
"source=${localWorkspaceFolder},target=/mios,type=bind,consistency=cached"
3232
],
33-
"postCreateCommand": "sudo ./.devcontainer/install-root-overlay.sh"
33+
"postCreateCommand": "sudo /usr/bin/zsh /mios/.devcontainer/install-root-overlay.sh"
3434
}

.devcontainer/install-root-overlay.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ fi
1313
for dir in etc usr var srv home; do
1414
if [ -d "/mios/$dir" ]; then
1515
echo " Merging /mios/$dir -> /$dir"
16-
# Using -as for symbolic links of the structure
17-
# Use rsync to create the directory structure and symlink files
18-
# Alternatively, a simple loop:
19-
find "/mios/$dir" -maxdepth 1 -mindepth 1 | while read item; do
16+
mkdir -p "/$dir"
17+
for item in /mios/$dir/*; do
18+
[ -e "$item" ] || continue
2019
target="/$dir/$(basename "$item")"
2120
ln -sf "$item" "$target" 2>/dev/null || true
2221
done

0 commit comments

Comments
 (0)