scripts/build_utils: write settings to /root/.pbuilderrc 1785/head
authorKefu Chai <kchai@redhat.com>
Tue, 30 Mar 2021 15:06:43 +0000 (23:06 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 30 Mar 2021 17:25:56 +0000 (01:25 +0800)
commitdb6d9e0714a417bba24045c05c4a9096a00b9106
tree7bd7d726084198f886da6bedfd3b64489b88210e
parent530885ab8223e1735e50c92d37aa7ec2f99ea604
scripts/build_utils: write settings to /root/.pbuilderrc

according to pbuilder(8)

> ${HOME}/.pbuilderrc
>       The personal configuration file for pbuilder, which overrides settings set in other configuration files.
>
>       Note that ${HOME} is usually /root (if you are running pbuilder through sudo).

since we always call `pbuilder` via `sudo`, we should overwrite
/root/.pbuilderrc with $HOME/.pbuilderrc.

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh