osbuild-run: generate /etc/pki/tls/certs/ca-bundle.crt
There's no need to bind mount the full /etc/pki from the host. This file can be generated from /usr.
This commit is contained in:
parent
f89ef6539d
commit
00f4e6ed8b
4 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
|
@ -14,6 +15,12 @@ except subprocess.CalledProcessError as error:
|
|||
sys.stderr.write(error.stdout)
|
||||
sys.exit(1)
|
||||
|
||||
# generate /etc/pki/tls/certs/ca-bundle.crt
|
||||
os.makedirs("/etc/pki/ca-trust/extracted/pem")
|
||||
os.makedirs("/etc/pki/tls/certs")
|
||||
os.symlink("/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", "/etc/pki/tls/certs/ca-bundle.crt")
|
||||
subprocess.run(["update-ca-trust"])
|
||||
|
||||
# Allow systemd-tmpfiles to return non-0. Some packages want to create
|
||||
# directories owned by users that are not set up with systemd-sysusers.
|
||||
subprocess.run(["systemd-tmpfiles", "--create"])
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
"stages": [
|
||||
{
|
||||
"name": "io.weldr.dnf",
|
||||
"systemResourcesFromEtc": ["/etc/pki"],
|
||||
"options": {
|
||||
"releasever": "30",
|
||||
"repos": {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
"stages": [
|
||||
{
|
||||
"name": "io.weldr.dnf",
|
||||
"systemResourcesFromEtc": ["/etc/pki"],
|
||||
"options": {
|
||||
"releasever": "30",
|
||||
"repos": {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
"stages": [
|
||||
{
|
||||
"name": "io.weldr.dnf",
|
||||
"systemResourcesFromEtc": ["/etc/pki"],
|
||||
"options": {
|
||||
"releasever": "30",
|
||||
"repos": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue