Skip to content

Commit 0234486

Browse files
committed
Fix podman detection on newer Fedora
Fedora changed its NAME to "Fedora Linux" which broke our detection logic. Instead just try to run podman, and if it succeeds then use it in preference to docker.
1 parent a595dcd commit 0234486

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/scripts/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function get_output_dir()
7272
return 0
7373
}
7474

75-
grep "^NAME=Fedora$" /etc/os-release > /dev/null
75+
podman --version > /dev/null
7676
if [[ $? -eq 0 ]]; then
7777
DOCKER="podman"
7878
PODMAN_OPTS="--security-opt label=disable --userns=keep-id"

0 commit comments

Comments
 (0)