#23 packagekit-cached-metadata.ks: Use internal kojipkgs IP
Closed 7 years ago by kalev. Opened 7 years ago by kalev.
kalev/fedora-kickstarts f24  into  f24

@@ -15,6 +15,15 @@ 

    test -f $f.kickstart && mv -f $f.kickstart $f

  done

  

+ # If we can't reach kojipkgs.fedoraproject.org but the internal IP is

+ # accessible, set up a hosts entry

+ INTERNAL_KOJIPKGS=10.5.125.36

+ if ! ping -q -c 1 -W 1 kojipkgs.fedoraproject.org >/dev/null; then

+   if ping -q -c 1 -W 1 $INTERNAL_KOJIPKGS >/dev/null; then

+     echo "$INTERNAL_KOJIPKGS     kojipkgs.fedoraproject.org" >> /etc/hosts

+   fi

+ fi

+ 

  PK_PREFIX=`mktemp -d`

  mkdir -p $PK_PREFIX/etc/yum.repos.d

  if [ -f /etc/yum.repos.d/fedora.repo ] ; then

Check if kojipkgs.fedoraproject.org is reachable; if not, set up
/etc/hosts pointing to the internal IP.

This should hopefully fix PackageKit cached metadata creation after the switch to livemedia-creator. I suspect this broke because /etc/hosts wasn't getting properly set up in the mock environment; not sure why but this should work this around.

Pull-Request has been closed by kalev

7 years ago
Metadata