From c2c5d041de71a1f39dfa7a95affdb5247cfb6fc1 Mon Sep 17 00:00:00 2001 From: philippe lhardy Date: Thu, 21 May 2020 15:12:16 +0200 Subject: [PATCH] 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. --- ynh-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ynh-dev b/ynh-dev index 74754fe..04a7930 100755 --- a/ynh-dev +++ b/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