From 6c9441e1051ff31893f93ab8405e6825d3d5f243 Mon Sep 17 00:00:00 2001 From: "root@pappnase /dev/pts/3 141.14.28.170" Date: Tue, 23 Aug 2016 13:02:32 +0200 Subject: [PATCH] fix data0 destination overmount when /amd/hostname/0 is already a destination from another partition skipp adding !data0. this happened when booting from mxonastick. --- mxmount | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mxmount b/mxmount index 6a24eec..3cb1b66 100755 --- a/mxmount +++ b/mxmount @@ -68,6 +68,10 @@ sub add_data0_if_not_present { if ($mp->{label} eq "data0") { return; } + if ($mp->{mountpoint} eq "$V{DEFAULT_MOUNT_PREFIX}/$hostname/0") { + print STDERR "$mp->{mountpoint} already blocked by $mp->{label}\n"; + return; + } } # print "no data0 found\n";