summaryrefslogtreecommitdiffstats
path: root/lib/Sbuild/ChrootUnshare.pm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/Sbuild/ChrootUnshare.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sbuild/ChrootUnshare.pm b/lib/Sbuild/ChrootUnshare.pm
index 81e90ca..f4b9c41 100644
--- a/lib/Sbuild/ChrootUnshare.pm
+++ b/lib/Sbuild/ChrootUnshare.pm
@@ -407,7 +407,7 @@ sub useradd {
my $rootdir = $self->get('Session ID');
my @idmap = read_subuid_subgid;
my @unshare_cmd = get_unshare_cmd({IDMAP => \@idmap});
- return system(@unshare_cmd, "/usr/sbin/useradd", "--root", $rootdir, @args);
+ return system(@unshare_cmd, "/usr/sbin/useradd", "--no-log-init", "--prefix", $rootdir, @args);
}
sub groupadd {
@@ -416,7 +416,7 @@ sub groupadd {
my $rootdir = $self->get('Session ID');
my @idmap = read_subuid_subgid;
my @unshare_cmd = get_unshare_cmd({IDMAP => \@idmap});
- return system(@unshare_cmd, "/usr/sbin/groupadd", "--root", $rootdir, @args);
+ return system(@unshare_cmd, "/usr/sbin/groupadd", "--prefix", $rootdir, @args);
}
1;