X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=overlay-boot;h=e94620ec70746b22f14fc61373811b9ef39e8090;hb=278dd15eac6aa42801917278bc559e002dbfa784;hp=75939fe97a2b670863cabf5252297f59e1bd10c7;hpb=7c240a57cac965924a90d04a24473a0387c36089;p=rrq%2Foverlay-boot.git diff --git a/overlay-boot b/overlay-boot index 75939fe..e94620e 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" @@ -60,7 +60,7 @@ exithandler() { } trap "exithandler" 0 -CMD="unshare -fp --mount-proc ip netns exec $NAME chroot $LIVE /bin/sh" +CMD="unshare -fp --mount-proc -i -u ip netns exec $NAME chroot $LIVE /bin/sh" echo "$CMD" config RAM_SIZE 50M