maintenance(pi-usb-scratch): fix false mount conflict detection
This commit is contained in:
parent
40de2b59a5
commit
3823b68ee2
@ -228,7 +228,7 @@ ensure_tmp_tmpfs_live() {
|
|||||||
|
|
||||||
find_existing_mount_source() {
|
find_existing_mount_source() {
|
||||||
local target="$1"
|
local target="$1"
|
||||||
host_sh "findmnt -T '${target}' -n -o SOURCE 2>/dev/null || true"
|
host_sh "if mountpoint -q '${target}'; then findmnt -T '${target}' -n -o SOURCE 2>/dev/null || true; fi"
|
||||||
}
|
}
|
||||||
|
|
||||||
auto_discover_removable_partition() {
|
auto_discover_removable_partition() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user