]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
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)
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

index f742110e286588d14de74fe363571c7ffcdd0dcf..7dbfe1d0d24e96ced0a202e180d87b5950da12ab 100644 (file)
@@ -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