Skip to content

Commit 1edeea7

Browse files
committed
install-runc: remove unused USESUDO variable
This is no longer needed, as the script is already run with sudo. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 293b08d commit 1edeea7

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ install-cri-deps: $(BINARIES)
280280
@install -m 644 containerd.service ${CRIDIR}/etc/systemd/system
281281
echo "CONTAINERD_VERSION: '$(VERSION:v%=%)'" | tee ${CRIDIR}/opt/containerd/cluster/version
282282

283-
DESTDIR=$(CRIDIR) USESUDO=false script/setup/install-runc
283+
DESTDIR=$(CRIDIR) script/setup/install-runc
284284
DESTDIR=$(CRIDIR) script/setup/install-cni
285285
DESTDIR=$(CRIDIR) script/setup/install-critools
286286

script/setup/install-runc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,7 @@ function install_runc() {
2727
cd "$GOPATH"/src/github.com/opencontainers/runc
2828
git checkout $RUNC_COMMIT
2929
make BUILDTAGS='apparmor seccomp selinux' runc
30-
31-
USESUDO=${USESUDO:-false}
32-
if ${USESUDO}; then
33-
SUDO='sudo -E'
34-
else
35-
SUDO=''
36-
fi
37-
${SUDO} make install
30+
make install
3831
}
3932

4033
function install_crun() {

0 commit comments

Comments
 (0)