diff --git a/mmdebstrap b/mmdebstrap index 290aafb..6ace61a 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -3171,7 +3171,10 @@ sub main() { exit 1; } } elsif ($options->{mode} eq 'chrootless') { - # nothing to do + if ($EFFECTIVE_USER_ID == 0) { + warning "running chrootless mode as root might damage the host " + . "system"; + } } else { error "unknown mode: $options->{mode}"; }