Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions install-no-uv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
apt-get install -y gdb-multiarch wget unzip
apt-get install -y binutils python3-pip ruby-dev git file colordiff imagemagick

# Since installing bpftool fails inside a container, it is excluded.
if [ ! -f /.dockerenv ]; then
apt-get install -y bpftool
# bpftool is no longer a standalone package; it ships in linux-tools-$(uname -r).
# That package is tied to the running kernel and is frequently unavailable inside
# containers (the host kernel's linux-tools may not exist in the image's repos),

echo "[+] Install bpftool"
if [ -z "$(command -v bpftool)" ]; then
KREL="$(uname -r)"
if ! apt-get install -y "linux-tools-${KREL}"; then
# Fall back to the generic meta-package, then the common linux-tools pkg.
apt-get install -y linux-tools-common
fi
fi

# Installing binwalk requires a large number of packages and takes a significant amount of time,
Expand Down
14 changes: 11 additions & 3 deletions install-uv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,17 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
apt-get install -y gdb-multiarch wget unzip
apt-get install -y binutils python3-dev gcc make ruby-dev git file colordiff imagemagick

# Since installing bpftool fails inside a container, it is excluded.
if [ ! -f /.dockerenv ]; then
apt-get install -y bpftool
# bpftool is no longer a standalone package; it ships in linux-tools-$(uname -r).
# That package is tied to the running kernel and is frequently unavailable inside
# containers (the host kernel's linux-tools may not exist in the image's repos),

echo "[+] Install bpftool"
if [ -z "$(command -v bpftool)" ]; then
KREL="$(uname -r)"
if ! apt-get install -y "linux-tools-${KREL}"; then
# Fall back to the generic meta-package, then the common linux-tools pkg.
apt-get install -y linux-tools-common
fi
fi

# Installing binwalk requires a large number of packages and takes a significant amount of time,
Expand Down