From 04824d770219264599dd7745ed54e34e849bbd35 Mon Sep 17 00:00:00 2001 From: JohnTheCoolingFan Date: Fri, 12 Jul 2024 23:35:29 +0300 Subject: [PATCH] Revert "Add MKNOD capability to docker container (#6927)" This reverts commit 8162899d3d42deb531bc9c18903bcf1f1af9a352. The capability has nothing top do with the actual issue. --- lib/functions/cli/cli-docker.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/functions/cli/cli-docker.sh b/lib/functions/cli/cli-docker.sh index 01a92fda0f83..f4e8be0e7d9b 100644 --- a/lib/functions/cli/cli-docker.sh +++ b/lib/functions/cli/cli-docker.sh @@ -74,10 +74,7 @@ function cli_docker_run() { case "${DOCKER_SUBCMD}" in shell) display_alert "Launching Docker shell" "docker-shell" "info" - # The MKNOD capability is required for loop device search function. - # In case there are no loop devices available, losetup -f would not be able to create a loop - # device, yet it will output a loop device path - docker run -it --cap-add MKNOD "${DOCKER_ARGS[@]}" "${DOCKER_ARMBIAN_INITIAL_IMAGE_TAG}" /bin/bash + docker run -it "${DOCKER_ARGS[@]}" "${DOCKER_ARMBIAN_INITIAL_IMAGE_TAG}" /bin/bash ;; purge)