69f29483f1
- short-name-mode="enforcing" in registries.conf Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
21 lines
781 B
Bash
21 lines
781 B
Bash
#!/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
|
|
|
|
echo "Changing seccomp.json..."
|
|
[ `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..."
|
|
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' \
|
|
registries.conf
|
|
|
|
echo '' >> registries.conf
|
|
echo 'short-name-mode="enforcing"' >> registries.conf
|