Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Don't fail to install dependencies if kernel headers fail on Debian #262

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 7 additions & 1 deletion scripts/bb-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,14 @@ Debian*)
sysstat lsscsi parted gdebi attr dbench watchdog ksh nfs-kernel-server \
samba rng-tools dkms rsync

# Running kernel headers (separate so it failing doesn't fail to install
# other dependencies)
sudo -E apt-get --yes install linux-headers-$(uname -r)
# Latest kernel headers (just in case) (ditto)
sudo -E apt-get --yes install linux-headers-$(dpkg-architecture -q DEB_TARGET_ARCH)

# Required development libraries
sudo -E apt-get --yes install linux-headers-$(uname -r) \
sudo -E apt-get --yes install \
zlib1g-dev uuid-dev libblkid-dev libselinux-dev \
xfslibs-dev libattr1-dev libacl1-dev libudev-dev libdevmapper-dev \
libssl-dev libaio-dev libffi-dev libelf-dev libmount-dev \
Expand Down