Skip to content

Commit 62b7d12

Browse files
dustymabeLuap99
authored andcommitted
spec: create/own /etc/containers/networks
In some cases if /etc/ is mounted read-only the non-existence of the `/etc/containers/networks` directory will cause basic functionality to fail. ``` bash-5.2# mount --bind -o ro /etc/containers/ /etc/containers/ bash-5.2# podman info Error: mkdir /etc/containers/networks: read-only file system ``` Since it's going to get created anyway let's just have the directory exist from the beginning. Signed-off-by: Dusty Mabe <[email protected]> (cherry picked from commit 9f2002b)
1 parent aefab14 commit 62b7d12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rpm/containers-common.spec

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ done
141141

142142
%install
143143
# install config and policy files for registries
144-
install -dp %{buildroot}%{_sysconfdir}/containers/{certs.d,oci/hooks.d,systemd}
144+
install -dp %{buildroot}%{_sysconfdir}/containers/{certs.d,oci/hooks.d,networks,systemd}
145145
install -dp %{buildroot}%{_sharedstatedir}/containers/sigstore
146146
install -dp %{buildroot}%{_datadir}/containers/systemd
147147
install -dp %{buildroot}%{_prefix}/lib/containers/storage
@@ -187,6 +187,7 @@ ln -s ../../../..%{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/
187187
%files
188188
%dir %{_sysconfdir}/containers
189189
%dir %{_sysconfdir}/containers/certs.d
190+
%dir %{_sysconfdir}/containers/networks
190191
%dir %{_sysconfdir}/containers/oci
191192
%dir %{_sysconfdir}/containers/oci/hooks.d
192193
%dir %{_sysconfdir}/containers/registries.conf.d

0 commit comments

Comments
 (0)