forked from josch/mmdebstrap
fix warning to not talk about bind-mounting
This commit is contained in:
parent
4c64adf6ee
commit
a23dd36bb6
1 changed files with 4 additions and 4 deletions
|
@ -1336,11 +1336,11 @@ sub setup_mounts {
|
|||
. " /sys directory is missing in the target");
|
||||
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||
&& !-e "/sys") {
|
||||
warning("skipping bind-mounting /sys because"
|
||||
warning("skipping mounting /sys because"
|
||||
. " /sys does not exist on the outside");
|
||||
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||
&& !-d "/sys") {
|
||||
warning("skipping bind-mounting /sys because"
|
||||
warning("skipping mounting /sys because"
|
||||
. " /sys on the outside is not a directory");
|
||||
} elsif ($options->{mode} eq 'root') {
|
||||
# we don't know whether we run in root mode inside an unshared
|
||||
|
@ -1411,11 +1411,11 @@ sub setup_mounts {
|
|||
. " /proc directory is missing in the target");
|
||||
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||
&& !-e "/proc") {
|
||||
warning("skipping bind-mounting /proc because"
|
||||
warning("skipping mounting /proc because"
|
||||
. " /proc does not exist on the outside");
|
||||
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||
&& !-d "/proc") {
|
||||
warning("skipping bind-mounting /proc because"
|
||||
warning("skipping mounting /proc because"
|
||||
. " /proc on the outside is not a directory");
|
||||
} elsif (any { $_ eq $options->{mode} } ('root', 'unshare')) {
|
||||
# we don't know whether we run in root mode inside an unshared
|
||||
|
|
Loading…
Reference in a new issue