summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-02-21 16:30:14 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-02-21 16:30:14 +0100
commitb87b9c938225cab79c07097e0f62aa7811c561bc (patch)
treea0bba02d88202a6aa3a6f805edf8a800456656bf
parent555bfe7c448d4ec1c60ca444bd4f37d41e74db56 (diff)
downloadmdbp-b87b9c938225cab79c07097e0f62aa7811c561bc.tar.gz
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.
-rw-r--r--mdbp/mmdebstrap.py2
1 files changed, 1 insertions, 1 deletions
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"],