X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=functions;h=ddcd97dd99fe7f4ed85ab93ec03694216faf5a9a;hb=36406858072d4bb5ddb3e4fed3c9949c5618f206;hp=bc65448082cb4c697df37d2d6f8e82f2bc5a5a4f;hpb=999f45597a2b2461d43d05b3a4726c29d2eed0ac;p=rrq%2Foverlay-boot.git diff --git a/functions b/functions index bc65448..ddcd97d 100644 --- a/functions +++ b/functions @@ -150,6 +150,17 @@ setup_overlay() { mount --bind $UPPER $LOWER fi + grep ^SHARE= "$CONFIG" | while read A ; do + B="$(echo ${A#SHARE=})" + D="$(realpath "$LOWER$B")" + [ "$D" = "$LOWER" ] && continue + if [ -d "$D" ] ; then + echo bind mount $D onto $LIVE$D + mkdir -p $LIVE$D + mount --bind $D $LIVE$D + fi + done + env CONFIG="$CONFIG" $POSTMOUNT "LIVE" "$UPPER" }