Fix containerd.sh for later Ubuntu and Debian-based distributions.

PiperOrigin-RevId: 345245285
This commit is contained in:
Adin Scannell 2020-12-02 09:13:59 -08:00 committed by gVisor bot
parent b26dd6d9b7
commit 9f02d2653b
1 changed files with 2 additions and 2 deletions

View File

@ -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