From: Ralph Ronnquist Date: Mon, 5 Dec 2022 03:12:49 +0000 (+1100) Subject: SHARE to mount host dir onto LIVE X-Git-Tag: v0.1.10~1 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=207b672e863b408cff5a56ddb2a9ff08f4523791;hp=9ceac0920581b2e794efd940cd33002cab015b2c;p=rrq%2Foverlay-boot.git SHARE to mount host dir onto LIVE --- diff --git a/functions b/functions index e9111fe..2fa68cc 100644 --- a/functions +++ b/functions @@ -156,12 +156,12 @@ setup_overlay() { grep ^SHARE= "$CONFIG" | while read A ; do B="$(echo ${A#SHARE=})" - D="$(realpath "$LOWER$B")" + D="$(realpath "$B")" [ "$D" = "$LOWER" ] && continue if [ -d "$D" ] ; then - echo bind mount $D onto $LIVE$D + echo bind mount $D onto $LIVE$B mkdir -p $LIVE$D - mount --bind $D $LIVE$D + mount --bind $D $LIVE$B fi done