diff --git a/build-ubunturepo b/build-ubunturepo index 035e9d5b1e..5dd48d424d 100755 --- a/build-ubunturepo +++ b/build-ubunturepo @@ -373,7 +373,8 @@ __EOF__ #echo "GPGSIGN=$GPGSIGN specified, the repo will not be signed" echo "" >> conf/distributions else - echo "SignWith: 5619700D" >> conf/distributions + keyid=$(gpg --list-keys --keyid-format long "xCAT Automatic Signing Key" | grep '^pub' | sed -e 's/.*\///' -e 's/ .*//') + echo "SignWith: $keyid" >> conf/distributions echo "" >> conf/distributions fi done @@ -514,7 +515,8 @@ __EOF__ echo "GPGSIGN=$GPGSIGN specified, the repo will not be signed" echo "" >> conf/distributions else - echo "SignWith: 5619700D" >> conf/distributions + keyid=$(gpg --list-keys --keyid-format long "xCAT Automatic Signing Key" | grep '^pub' | sed -e 's/.*\///' -e 's/ .*//') + echo "SignWith: $keyid" >> conf/distributions echo "" >> conf/distributions fi diff --git a/buildcore.sh b/buildcore.sh index c8d40dc522..14b5845136 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -479,13 +479,13 @@ if [ "$OSNAME" != "AIX" ]; then rm -f $SRCDIR/repodata/repomd.xml.asc rm -f $DESTDIR/repodata/repomd.xml.asc # Use the xCAT Automatic Signing Key to do the signing - gpg -a --detach-sign --default-key 5619700D $DESTDIR/repodata/repomd.xml - gpg -a --detach-sign --default-key 5619700D $SRCDIR/repodata/repomd.xml + gpg -a --detach-sign --default-key "xCAT Automatic Signing Key" $DESTDIR/repodata/repomd.xml + gpg -a --detach-sign --default-key "xCAT Automatic Signing Key" $SRCDIR/repodata/repomd.xml if [ ! -f $DESTDIR/repodata/repomd.xml.key ]; then - ${WGET_CMD} --no-check-certificate -q -P $DESTDIR/repodata $GSA/keys/repomd.xml.key + gpg -a --export "xCAT Automatic Signing Key" > $DESTDIR/repodata/repomd.xml.key fi if [ ! -f $SRCDIR/repodata/repomd.xml.key ]; then - ${WGET_CMD} --no-check-certificate -P $SRCDIR/repodata $GSA/keys/repomd.xml.key + gpg -a --export "xCAT Automatic Signing Key" > $SRCDIR/repodata/repomd.xml.key fi else createrepo $DESTDIR diff --git a/builddep.sh b/builddep.sh index 9ad4fa8645..e41be9f732 100755 --- a/builddep.sh +++ b/builddep.sh @@ -265,9 +265,9 @@ for i in `find -mindepth 2 -maxdepth 2 -type d `; do createrepo $i >/dev/null fi rm -f $i/repodata/repomd.xml.asc - gpg -a --detach-sign --default-key 5619700D $i/repodata/repomd.xml + gpg -a --detach-sign --default-key "xCAT Automatic Signing Key" $i/repodata/repomd.xml if [ ! -f $i/repodata/repomd.xml.key ]; then - cp $GSA/../keys/repomd.xml.key $i/repodata + gpg -a --export "xCAT Automatic Signing Key" > $i/repodata/repomd.xml.key fi done diff --git a/xCAT-server/share/xcat/install/rh/service.rhels9.pkglist b/xCAT-server/share/xcat/install/rh/service.rhels9.pkglist index c21e00a258..7be6320fce 100644 --- a/xCAT-server/share/xcat/install/rh/service.rhels9.pkglist +++ b/xCAT-server/share/xcat/install/rh/service.rhels9.pkglist @@ -14,3 +14,4 @@ python3 tar bzip2 perl-interpreter +perl-lib diff --git a/xCAT-server/share/xcat/install/rh/service.rhels9.ppc64le.otherpkgs.pkglist b/xCAT-server/share/xcat/install/rh/service.rhels9.ppc64le.otherpkgs.pkglist index 6d2f563f86..d7e7adc671 100644 --- a/xCAT-server/share/xcat/install/rh/service.rhels9.ppc64le.otherpkgs.pkglist +++ b/xCAT-server/share/xcat/install/rh/service.rhels9.ppc64le.otherpkgs.pkglist @@ -1,2 +1,2 @@ xcat/xcat-core/xCATsn -xcat/xcat-dep/rh8/ppc64le/goconserver +xcat/xcat-dep/rh9/ppc64le/goconserver diff --git a/xCAT-server/share/xcat/install/rh/service.rhels9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/install/rh/service.rhels9.x86_64.otherpkgs.pkglist index 8ab29e03a1..89287b6ab9 100644 --- a/xCAT-server/share/xcat/install/rh/service.rhels9.x86_64.otherpkgs.pkglist +++ b/xCAT-server/share/xcat/install/rh/service.rhels9.x86_64.otherpkgs.pkglist @@ -1,2 +1,2 @@ xcat/xcat-core/xCATsn -xcat/xcat-dep/rh8/x86_64/goconserver +xcat/xcat-dep/rh9/x86_64/goconserver diff --git a/xCAT-server/share/xcat/netboot/rh/service.rhels9.ppc64le.otherpkgs.pkglist b/xCAT-server/share/xcat/netboot/rh/service.rhels9.ppc64le.otherpkgs.pkglist index 6d2f563f86..d7e7adc671 100644 --- a/xCAT-server/share/xcat/netboot/rh/service.rhels9.ppc64le.otherpkgs.pkglist +++ b/xCAT-server/share/xcat/netboot/rh/service.rhels9.ppc64le.otherpkgs.pkglist @@ -1,2 +1,2 @@ xcat/xcat-core/xCATsn -xcat/xcat-dep/rh8/ppc64le/goconserver +xcat/xcat-dep/rh9/ppc64le/goconserver diff --git a/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.otherpkgs.pkglist index 8ab29e03a1..89287b6ab9 100644 --- a/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.otherpkgs.pkglist +++ b/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.otherpkgs.pkglist @@ -1,2 +1,2 @@ xcat/xcat-core/xCATsn -xcat/xcat-dep/rh8/x86_64/goconserver +xcat/xcat-dep/rh9/x86_64/goconserver diff --git a/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.pkglist b/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.pkglist index 4bb4323012..f570fd10b1 100644 --- a/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.pkglist +++ b/xCAT-server/share/xcat/netboot/rh/service.rhels9.x86_64.pkglist @@ -10,6 +10,7 @@ util-linux wget perl-DBD-MySQL perl-DBD-Pg +perl-lib python3 tar bzip2