diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-12-31 07:35:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-31 07:35:51 +0100 |
commit | 32a61c061b85cccb6d09a60952c04a1dff8359d4 (patch) | |
tree | 5cf6a06513ef684d86704c0daca83a47827b0076 /scripts/init/vyos-router | |
parent | 4d32d9173ce599a26f9d12a7b5e62b5c0cf13997 (diff) | |
parent | 2febfbf3ea9f62e820d62043c4951e365c489676 (diff) | |
download | vyatta-cfg-32a61c061b85cccb6d09a60952c04a1dff8359d4.tar.gz vyatta-cfg-32a61c061b85cccb6d09a60952c04a1dff8359d4.zip |
Merge pull request #53 from c-po/equuleus
container: T578: backport podman from 1.4 development branch
Diffstat (limited to 'scripts/init/vyos-router')
-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 |