Commit 52942068 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

restore: load ip6tables modules on restore as well

The restore process uses these modules as well, so let's modprobe them.
This prevents:

(00.217856)      1:     Running ip rule delete
(00.218970)      1:     Running ip rule delete
(00.220059)      1:     Running ip rule delete
(00.221695)      1:     Running ip rule restore
(00.223068)      1:     Running iptables-restore for iptables-restore
(00.439385)      1:     Running ip6tables-restore for ip6tables-restore
modprobe: ERROR: could not insert 'ip6_tables': Operation not permitted
ip6tables-restore v1.6.0: ip6tables-restore: unable to initialize table 'filter'

Error occurred at line: 2
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 48c7d40f
...@@ -659,6 +659,7 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -659,6 +659,7 @@ int main(int argc, char *argv[], char *envp[])
} }
if (!strcmp(argv[optind], "restore")) { if (!strcmp(argv[optind], "restore")) {
preload_netfilter_modules();
if (tree_id) if (tree_id)
pr_warn("Using -t with criu restore is obsoleted\n"); pr_warn("Using -t with criu restore is obsoleted\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment