Revert "Added a call to losetup -f"

This reverts commit b3d9a17a57.
This commit is contained in:
JohnTheCoolingFan
2024-05-20 14:54:27 +03:00
committed by Igor
parent b3d9a17a57
commit 7da42c8a42
4 changed files with 1 additions and 11 deletions

View File

@@ -116,9 +116,3 @@ function free_loop_device_retried() {
fi
losetup -d "${1}"
}
# Runs losetup -f as root to ensure that there is a /dev/loopX or /dev/loopXY device existing and available
function ensure_loop_exists() {
local sudo_prefix="" && is_root_or_sudo_prefix sudo_prefix
${sudo_prefix} losetup -f
}