Skip to content

Commit d847b52

Browse files
committed
fake sudo
1 parent 9d86b92 commit d847b52

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Github/Runners/bootstrap/debian.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ set -x
3030
chown -R _apt:root /var/cache/apt/archives/partial/
3131
dpkg-statoverride --remove /usr/bin/crontab
3232
DEBIAN_FRONTEND="noninteractive" apt update -y
33-
DEBIAN_FRONTEND="noninteractive" apt install bash binutils coreutils curl fakeroot gawk git locales sudo wget -y --no-install-recommends --ignore-missing
33+
DEBIAN_FRONTEND="noninteractive" apt install bash binutils coreutils curl fakechroot fakeroot gawk git locales wget -y --no-install-recommends --ignore-missing
3434
locale-gen "en_US.UTF-8"
3535
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
3636
apt purge locales perl -y ; apt autoremove -y ; apt autoclean -y
37+
curl -qfsSL "https://raw.githubusercontent.com/VHSgunzo/runimage-fake-sudo-pkexec/refs/heads/main/usr/bin/sudo" -o "/usr/bin/sudo" && chmod -v "a+x" "/usr/bin/sudo"
3738
apt list --installed
3839
apt clean -y
3940
find "/boot" -mindepth 1 -delete 2>/dev/null

Github/Runners/bootstrap/ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ set -x
3232
chown -R _apt:root /var/cache/apt/archives/partial/
3333
dpkg-statoverride --remove /usr/bin/crontab
3434
ubuntu_FRONTEND="noninteractive" apt update -y
35-
ubuntu_FRONTEND="noninteractive" apt install bash binutils coreutils curl fakeroot gawk git locales sed sudo wget -y --no-install-recommends --ignore-missing
35+
ubuntu_FRONTEND="noninteractive" apt install bash binutils coreutils curl fakechroot fakeroot gawk git locales sed wget -y --no-install-recommends --ignore-missing
3636
locale-gen "en_US.UTF-8"
3737
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
3838
apt purge locales perl -y ; apt autoremove -y ; apt autoclean -y
39+
curl -qfsSL "https://raw.githubusercontent.com/VHSgunzo/runimage-fake-sudo-pkexec/refs/heads/main/usr/bin/sudo" -o "/usr/bin/sudo" && chmod -v "a+x" "/usr/bin/sudo"
3940
apt list --installed
4041
apt clean -y
4142
find "/boot" -mindepth 1 -delete 2>/dev/null

0 commit comments

Comments
 (0)