2021-01-20 20:16:15 +00:00
|
|
|
#!/usr/bin/bash
|
|
|
|
|
|
|
|
spectool -fg containers-common.spec
|
|
|
|
|
|
|
|
echo "Changing storage.conf..."
|
|
|
|
sed -i -e 's/^driver.*=.*/driver = "overlay"/' -e 's/^mountopt.*=.*/mountopt = "nodev,metacopy=on"/' \
|
|
|
|
storage.conf
|
|
|
|
|
2021-01-20 20:48:21 +00:00
|
|
|
echo "Changing seccomp.json..."
|
2021-01-20 20:16:15 +00:00
|
|
|
[ `grep "keyctl" seccomp.json | wc -l` == 0 ] && sed -i '/\"kill\",/i \
|
|
|
|
"keyctl",' seccomp.json
|
|
|
|
sed -i '/\"socketcall\",/i \
|
|
|
|
"socket",' seccomp.json
|
|
|
|
|
|
|
|
echo "Changing registries.conf..."
|
2021-02-15 19:12:49 +00:00
|
|
|
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "docker.io", "quay.io"]/g' \
|
2021-01-20 20:16:15 +00:00
|
|
|
registries.conf
|
|
|
|
|
2021-02-18 15:19:40 +00:00
|
|
|
grep '\nshort-name-mode="enforcing"' registries.conf
|
|
|
|
if [[ $? == 1 ]]; then
|
|
|
|
echo -e '\nshort-name-mode="enforcing"' >> registries.conf
|
|
|
|
fi
|