]> piware.de Git - bin.git/commitdiff
build-rhtoolbox: Simplify certificate install
authorMartin Pitt <martin@piware.de>
Fri, 18 Dec 2020 07:57:24 +0000 (08:57 +0100)
committerMartin Pitt <martin@piware.de>
Fri, 18 Dec 2020 07:58:51 +0000 (08:58 +0100)
Also move to Fedora 33.

build-rhtoolbox

index b92ee5703d5454e61bfb2cb5ce563ec3e1e5639c..f70b359d89ed7fa9cff61287e07b23668069e497 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -eux
 NAME=redhat
-RELEASE=32
+RELEASE=33
 
 toolbox rm --force $NAME || true
 yes | toolbox create --release $RELEASE -c $NAME
@@ -14,9 +14,7 @@ sudo hostname -F /etc/hostname
 
 sudo dnf update -y
 
-# this just refuses to rpm -i normally
-sudo dnf install -y cpio
-rpm2cpio ~martin/Dokumente/Arbeit/RedHat/redhat-internal-cert-install-0.1-7.el7.csb.noarch.rpm | sudo cpio -id --directory=/ --verbose "./etc/pki/*"
+sudo curl -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt https://password.corp.redhat.com/RH-IT-Root-CA.crt
 sudo update-ca-trust
 
 (cd /etc/yum.repos.d; sudo curl -O --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo)