]> git.proxmox.com Git - vzctl.git/commitdiff
Fix unrecognized option '--all'
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 13 Mar 2014 06:39:53 +0000 (07:39 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 13 Mar 2014 06:39:53 +0000 (07:39 +0100)
debian/patches/fix-vzifup-post-error.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/fix-vzifup-post-error.patch b/debian/patches/fix-vzifup-post-error.patch
new file mode 100644 (file)
index 0000000..890a46c
--- /dev/null
@@ -0,0 +1,23 @@
+Fix unrecognized option '--all'
+
+To reproduce use: 
+
+ service networking restart
+
+This calls:
+
+  ifup -a --exclude=lo ("service networking restart")
+
+which sets $ADDRFAM == "meta" and $IFACE == "--all"
+
+
+Index: new/etc/network/if-up.d/vzifup-post.in
+===================================================================
+--- new.orig/etc/network/if-up.d/vzifup-post.in        2012-09-28 09:05:45.000000000 +0200
++++ new/etc/network/if-up.d/vzifup-post.in     2014-03-13 07:38:18.415372011 +0100
+@@ -1,3 +1,5 @@
+ #!/bin/sh
++[ "$ADDRFAM" = "inet" ] || [ "$ADDRFAM" = "inet6" ] || exit 0
++
+ exec @SBINDIR@/vzifup-post "$IFACE"
index fda139c823e1a3fe4c3f2e0a8bab6c772cdc510e..483ec4cb756d1c8617f1e3908243620f4ac39cdf 100644 (file)
@@ -8,3 +8,4 @@ fix-init.d-depends.diff
 allow-abs-ostemplate-path.diff
 always-create-dev-console.patch
 keep-bridge-MTU.patch
+fix-vzifup-post-error.patch