From: Ralph Ronnquist Date: Mon, 21 Mar 2022 03:29:47 +0000 (+1100) Subject: various correction X-Git-Tag: deb_0.1~24 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=53e1af91a724d9b4b0f819b3f5e6a12bb496e571;p=rrq%2Foverlay-boot.git various correction --- diff --git a/overlay-boot b/overlay-boot index 239ae1c..f068b43 100755 --- a/overlay-boot +++ b/overlay-boot @@ -5,12 +5,9 @@ # subhost is defined by a configuration file named on teh command line [ $(id -u) = 0 ] || exec sudo $0 $@ - -. $(dirname $(realpath $0))/functions - +. $(dirname $(realpath $0))/functions $* CONFIG="$1" [ -r "$CONFIG" ] || die "Missing configuration $CONFIG" - config NAME $(basename $1 .${1##*.}) config LOG /tmp/oly-$NAME.log @@ -26,6 +23,8 @@ if [ -z "$UNSHARED" ] ; then fi config BASE +BASE="$(cd $(dirname $CONFIG); realpath $BASE)" + config LIVE "$BASE/live" config UPPER "$BASE/root" config WORK "$BASE/work" @@ -50,11 +49,11 @@ trap "exithandler" 0 CMD="unshare -fp --mount-proc ip netns exec $NAME chroot $LIVE /bin/sh" echo "$CMD" + cat <