From 5a6cbce2cd8047a4197f51451c0311d9d5bc2c79 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Fri, 19 Apr 2019 11:45:53 +0800 Subject: [PATCH] Use xCAT Automatic Signing Key, 5619700D to do the signing. --- builddep.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builddep.sh b/builddep.sh index 8f66989c4..926fa7bdb 100755 --- a/builddep.sh +++ b/builddep.sh @@ -116,7 +116,7 @@ if [ "$OSNAME" != "AIX" ]; then echo '%_signature gpg' >> $MACROS fi if ! $GREP -q '%_gpg_name' $MACROS 2>/dev/null; then - echo '%_gpg_name xCAT Security Key' >> $MACROS + echo '%_gpg_name xCAT Automatic Signing Key' >> $MACROS fi # Sign the rpms that are not already signed. The "standard input reopened" warnings are normal. @@ -127,12 +127,12 @@ if [ "$OSNAME" != "AIX" ]; then echo "===> Creating repodata directories..." for i in `find -mindepth 2 -maxdepth 2 -type d `; do if [ -n "$VERBOSEMODE" ]; then - createrepo --checksum sha $i # specifying checksum so the repo will work on rhel5 + createrepo $i # specifying checksum so the repo will work on rhel5 else - createrepo --checksum sha $i >/dev/null + createrepo $i >/dev/null fi rm -f $i/repodata/repomd.xml.asc - gpg -a --detach-sign $i/repodata/repomd.xml + gpg -a --detach-sign --default-key 5619700 $i/repodata/repomd.xml if [ ! -f $i/repodata/repomd.xml.key ]; then cp $GSA/../keys/repomd.xml.key $i/repodata fi