mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
extrahd: Skip relative mountpoints
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -40,6 +40,12 @@ extrahd_mount() {
|
||||
continue
|
||||
fi
|
||||
|
||||
# Check that the mountpoint starts with a slash
|
||||
if [ "${mountpoint:0:1}" != "/" ]; then
|
||||
log "Skipping invalid mountpoint: ${mountpoint}"
|
||||
continue
|
||||
fi
|
||||
|
||||
# Skip mounting if something is already mounted at the mountpoint
|
||||
if mountpoint "${mountpoint}" &>/dev/null; then
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user