summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-12-02 09:13:59 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-02 09:15:58 -0800
commit9f02d2653bb790e8403b1c8b54656e06eb908802 (patch)
tree43d100b6e1ce3b0c4c9b38dbd0202708ee895467
parentb26dd6d9b78b2703a8a726376e6935011657123a (diff)
Fix containerd.sh for later Ubuntu and Debian-based distributions.
PiperOrigin-RevId: 345245285
-rwxr-xr-xtools/installers/containerd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/installers/containerd.sh b/tools/installers/containerd.sh
index 4bbbffeee..5520a447c 100755
--- a/tools/installers/containerd.sh
+++ b/tools/installers/containerd.sh
@@ -49,10 +49,10 @@ install_helper() {
# and later versions no longer have the transitional package.
source /etc/os-release
declare BTRFS_DEV
-if [[ "${ID}" == "ubuntu" ]] && [[ "${VERSION_ID%.*}" -le "18" ]]; then
+if [[ "${VERSION_ID%.*}" -le "18" ]]; then
BTRFS_DEV="btrfs-tools"
else
- BTRFS_DEV="btrfs-dev"
+ BTRFS_DEV="libbtrfs-dev"
fi
readonly BTRFS_DEV