Handle lintian complaints.
[rrq/overlay-boot.git] / functions
index bc65448082cb4c697df37d2d6f8e82f2bc5a5a4f..ddcd97dd99fe7f4ed85ab93ec03694216faf5a9a 100644 (file)
--- 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" 
 }