tags 665813 + patch kthxbye Here's a patch, taken from http://bazaar.launchpad.net/~neil-aldur/ubuntu/precise/iptables-persistent/fix-for-967018-905517/revision/9 with some changes.
-- Kind regards, Loong Jin
From eee860650ab88bdd01ce0c9e547716c22f495a51 Mon Sep 17 00:00:00 2001 From: Chow Loong Jin <hyper...@debian.org> Date: Mon, 16 Apr 2012 00:35:09 +0800 Subject: [PATCH] Make sure /etc/default/rules.v4 exists for mv_conffiles LP: #967018 Closes: #665813 Thanks: Neil Wilson <n...@aldur.co.uk> --- debian/iptables-persistent.postinst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/iptables-persistent.postinst b/debian/iptables-persistent.postinst index 8d3a565..1c86ccc 100644 --- a/debian/iptables-persistent.postinst +++ b/debian/iptables-persistent.postinst @@ -5,8 +5,12 @@ set -e # Source debconf library . /usr/share/debconf/confmodule -dpkg-maintscript-helper mv_conffile \ - /etc/iptables/rules /etc/iptables/rules.v4 0.0.20101230 -- "$@" +if [ ! -e /etc/iptables/rules.v4 ]; then + touch /etc/iptables/rules.v4 + + dpkg-maintscript-helper mv_conffile \ + /etc/iptables/rules /etc/iptables/rules.v4 0.0.20101230 -- "$@" +fi case "$1" in configure) -- 1.7.9.5
signature.asc
Description: OpenPGP digital signature