From: Christian Brauner Date: Wed, 6 Sep 2017 10:33:19 +0000 (+0200) Subject: tools: fix lxc-upate-config X-Git-Tag: lxc-3.0.0.beta1~247^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1794%2Fhead;p=thirdparty%2Flxc.git tools: fix lxc-upate-config - replace lxc.network.[i].ipv4 with lxc.net.[i].ipv4.address - remove lxc.rootfs.backend lines Closes #1790. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/tools/lxc-update-config.in b/src/lxc/tools/lxc-update-config.in index 3a9defd11..5bd550877 100644 --- a/src/lxc/tools/lxc-update-config.in +++ b/src/lxc/tools/lxc-update-config.in @@ -63,8 +63,10 @@ sed -i \ -e 's/\([[:blank:]*]\|#*\)\(lxc\.init_uid\)\([[:blank:]*]\|=\)/\1lxc\.init\.uid\3/g' \ -e 's/\([[:blank:]*]\|#*\)\(lxc\.init_gid\)\([[:blank:]*]\|=\)/\1lxc\.init\.gid\3/g' \ -e 's/\([[:blank:]*]\|#*\)\(lxc\.limit\)\([[:blank:]*]\|=\)/\1lxc\.prlimit\3/g' \ +-e 's/\([[:blank:]*]\|#*\)\(lxc\.network\)\(\.[[:digit:]*]\)\(\.ipv4\)/\1lxc\.net\3\4\.address/g' \ -e 's/\([[:blank:]*]\|#*\)\(lxc\.network\)\(\.[[:digit:]*]\)/\1lxc\.net\3/g' \ -e 's/\([[:blank:]*]\|#*\)\(lxc\.network\)\([[:blank:]*]\|=\)/\1lxc\.net\3/g' \ +-e '/\([[:blank:]*]\|#*\)\(lxc\.rootfs\.backend\)\([[:blank:]*]\|=\)/d' \ "${CONFIGPATH}" # Finally, deal with network definitions of the following form: