diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-12-30 22:17:12 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-12-30 22:17:12 +0100 |
commit | 2febfbf3ea9f62e820d62043c4951e365c489676 (patch) | |
tree | 5cf6a06513ef684d86704c0daca83a47827b0076 | |
parent | 4d32d9173ce599a26f9d12a7b5e62b5c0cf13997 (diff) | |
download | vyatta-cfg-2febfbf3ea9f62e820d62043c4951e365c489676.tar.gz vyatta-cfg-2febfbf3ea9f62e820d62043c4951e365c489676.zip |
container: T578: backport podman from 1.4 development branch
-rwxr-xr-x | scripts/init/vyos-router | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index 7cbe177..ee46a9a 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -173,6 +173,15 @@ bind_mount_boot () fi } +# These are all the default security setting which are later +# overridden when configuration is read. These are the values the +# system defaults. +security_reset () +{ + # Container + rm -f /etc/containers/storage.conf /etc/containers/registries.conf +} + # XXX: T3885 - generate persistend DHCPv6 DUID (Type4 - UUID based) gen_duid () { @@ -222,6 +231,9 @@ start () # Generate DHCPv6 DUID gen_duid || log_failure_msg "could not generate DUID" + # reset and clean config files + security_reset || log_failure_msg "security reset failed" + # Fixup for FRR # In 5.1 master, zebra thinks existence of /var/run/netns is @@ -248,6 +260,7 @@ start () # the script by hand to have a single source for the login banner and MOTD ${vyos_conf_scripts_dir}/system_console.py || log_failure_msg "could not reset serial console" ${vyos_conf_scripts_dir}/system-login-banner.py || log_failure_msg "could not reset motd and issue files" + ${vyos_conf_scripts_dir}/container.py || log_failure_msg "could not reset container subsystem" # enable some debugging before loading the configuration if grep -q vyos-debug /proc/cmdline; then |