diff --git a/makechrootpkg.in b/makechrootpkg.in index 3c8a20f46ba1b4cef090634cf9abbdb01906755b..309b495f9250aca71e640140f701891b02356eae 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -189,7 +189,7 @@ prepare_chroot() { # We can't use useradd without chrooting, otherwise it invokes PAM modules # which we might not be able to load (i.e. when building i686 packages on # an x86_64 host). - printf 'builduser:x:%d:100:builduser:/:/usr/bin/nologin\n' "$builduser_uid" >>"$copydir/etc/passwd" + printf 'builduser:x:%d:100:builduser:/build:/usr/bin/nologin\n' "$builduser_uid" >>"$copydir/etc/passwd" chown -R "$builduser_uid" "$copydir"/{build,pkgdest,srcpkgdest,logdest,srcdest,startdir} if [[ -n $MAKEFLAGS ]]; then