mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
support symlinks within ynh-dev path
When there are symlinks in directories contains by current path then lxc fails with : Error: Invalid devices: Device validation failed "ynhdev-shared-folder": Missing source "(...)/ynh-dev" for disk "ynhdev-shared-folder" using readlink -f to obtain full path.
This commit is contained in:
parent
ce101f9b66
commit
c2c5d041de
1 changed files with 1 additions and 1 deletions
2
ynh-dev
2
ynh-dev
|
@ -146,7 +146,7 @@ function start_ynhdev()
|
|||
then
|
||||
sudo lxc config set $BOX security.nesting true # Need this for buster because it is using apparmor
|
||||
fi
|
||||
sudo lxc config device add $BOX ynhdev-shared-folder disk path=/ynh-dev source="$PWD"
|
||||
sudo lxc config device add $BOX ynhdev-shared-folder disk path=/ynh-dev source="$(readlink -f $(pwd))"
|
||||
set +x
|
||||
info "Now attaching to the container"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue