From 31bb03f113e4093d432563cbff58705be83df8c7 Mon Sep 17 00:00:00 2001 From: phoppermann <51988084+phoppermann@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:03:55 +0200 Subject: [PATCH] init: do not fail in "Setting up read-only mounts" if findmnt does not exist (#1454) --- distrobox-init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/distrobox-init b/distrobox-init index 24a026d311..16e74f1163 100755 --- a/distrobox-init +++ b/distrobox-init @@ -246,6 +246,11 @@ get_locked_mount_flags() prev="" locked_flags="" + # If findmnt does not exist, exit + if ! command -v findmnt 2> /dev/null > /dev/null; then + return 0 + fi + # If we can't read the file/directory, exit if ! ls "${src}" 2> /dev/null > /dev/null; then return 0