From b87b9c938225cab79c07097e0f62aa7811c561bc Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 21 Feb 2023 16:30:14 +0100 Subject: mdbp-mmdebstrap: handle missing useradd Now that useradd isn't pulled by apt anymore, it's no longer available inside the chroot. Use the outer one instead. --- mdbp/mmdebstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdbp/mmdebstrap.py') diff --git a/mdbp/mmdebstrap.py b/mdbp/mmdebstrap.py index b3fa161..d68bc85 100644 --- a/mdbp/mmdebstrap.py +++ b/mdbp/mmdebstrap.py @@ -226,7 +226,7 @@ def main() -> None: "--include=" + ",".join(buildessential), '--essential-hook=echo man-db man-db/auto-update boolean false | ' \ 'chroot "$1" debconf-set-selections', - '--customize-hook=chroot "$1" useradd --user-group --create-home ' + '--customize-hook=useradd --root "$1" --user-group --create-home ' '--home-dir %s build --skel /nonexistent' % shlex.quote(builddir), *(["--customize-hook=copy-in " + shlex.join([ build["input"]["source_package_path"], -- cgit v1.2.3