[arch-general] How to build package in "clean chroot" using the "-U" parameter?

Manuel Reimer Manuel.Spam at nurfuerspam.de
Fri Dec 22 13:20:50 UTC 2017


On 12/22/2017 02:16 PM, Óscar García Amor wrote:
> # su - user -c "command"
> 
> In this case:
> 
> # su - user -c "makechrootpkg -c -r /var/cache/PATH_TO_MY_CHROOT"

Yes, of course, but then "makechrootpkg" at some point wants to call 
"pacman" which will fail or will cause some unwanted sudo prompt to appear.

That's why I want to start with "root permissions" and only want to drop 
to a less privileged user for the cases where software is built.


More information about the arch-general mailing list