From: Kefu Chai Date: Tue, 30 Mar 2021 15:06:43 +0000 (+0800) Subject: scripts/build_utils: write settings to /root/.pbuilderrc X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1785%2Fhead;p=ceph-build.git 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 --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index f742110e..7dbfe1d0 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -570,6 +570,7 @@ setup_pbuilder() { echo "USENETWORK=yes" >> ~/.pbuilderrc setup_pbuilder_for_ppa >> ~/.pbuilderrc fi + sudo cp ~/.pbuilderrc /root/.pbuilderrc sudo pbuilder clean if [ -e $basedir/$DIST.tgz ]; then