From: Ralph Ronnquist Date: Sun, 13 Jul 2025 02:54:30 +0000 (+1000) Subject: Zap spurious sudo usage X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=HEAD;p=rrq%2Foverlay-boot.git Zap spurious sudo usage --- diff --git a/overlay-go b/overlay-go index 991067d..8724fbd 100755 --- a/overlay-go +++ b/overlay-go @@ -1,6 +1,5 @@ #!/bin/sh -[ $(id -u) = 0 ] || exec sudo $0 $@ . $(dirname $(realpath $0))/functions XXX NAME="$1" @@ -21,7 +20,7 @@ EOF exit 1 fi -sudo nsenter -t "$RSPID" -n -m -p -r -w -i -u -C /bin/bash +nsenter -t "$RSPID" -n -m -p -r -w -i -u -C /bin/bash if [ $? = 137 ] ; then echo "######### please 'fg' this again (if stopped)" >&2 stty sane # a killed bash might leave the tty insane and stty diff --git a/overlay-share b/overlay-share index 1ed74fc..7058b90 100755 --- a/overlay-share +++ b/overlay-share @@ -30,7 +30,7 @@ EOF exit 1 fi -sudo nsenter -t "$RSPID" -n -m -p /bin/bash <