X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=overlay-boot;h=0db05aa32974a4854d012d76a8085e7cdf54a1bc;hb=9225cede2a8826492f7ea28acaf2fb8dbb7fbdad;hp=5e6bef92a9b7451627b5d257ce14ade89a66381b;hpb=a3b6bd2a94624852e5fef890fda9fde9548080f3;p=rrq%2Foverlay-boot.git diff --git a/overlay-boot b/overlay-boot index 5e6bef9..0db05aa 100755 --- a/overlay-boot +++ b/overlay-boot @@ -4,10 +4,10 @@ # is an overlay of the subhost's root and an OS root. The service # subhost is defined by a configuration file named on teh command line -OVERLAYDIR="$(realpath $(dirname $0))" +OVERLAYDIR="$(dirname $(realpath $0))" [ $(id -u) = 0 ] || exec sudo $0 $@ -. $(dirname $(realpath $0))/functions $* +. $OVERLAYDIR/functions $* CONFIG="$1" [ -r "$CONFIG" ] || die "Missing configuration $CONFIG" @@ -44,10 +44,11 @@ config CABLES "" config START "networking ssh" config SUBSHELL /bin/sh -# Setup virtual cabling and subhost's /etc/network/interfaces +# Setup virtual cabling setup_veth_cables $NAME $CABLES # Set up the mount for this subhost, including a new tmpfs on its /run +# and a default $UPPER/etc/network/interfaces if needed echo setup_overlay "$NAME" "$LIVE" "$LOWER" "$UPPER" "$WORK" setup_overlay "$NAME" "$LIVE" "$LOWER" "$UPPER" "$WORK"