Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix data0 destination overmount
when /amd/hostname/0 is already a destination from another partition skipp adding !data0.

this happened when booting from mxonastick.
  • Loading branch information
wurzel committed Aug 23, 2016
1 parent a0a1b72 commit 6c9441e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mxmount
Expand Up @@ -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";
Expand Down

0 comments on commit 6c9441e

Please sign in to comment.