From 7abc2c2779a08ebf20a227cffcb22c90c35c0cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 22 Mar 2015 03:47:42 +0100 Subject: [PATCH] fedora: override iptables configuration on initial installation Otherwise Qubes-specific configuration will not be placed at all (in Fedora 21, which provide some example iptables config). --- rpm_spec/core-vm.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 9ad3b4a..995ec4e 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -259,10 +259,10 @@ done # Copy ip(|6)tables into place if they do not already exist in filesystem. # This prevents conflict with iptables-service -if [ ! -f '/etc/sysconfig/iptables' ]; then +if [ ! -f '/etc/sysconfig/iptables' -o $1 = 1 ]; then cp -p /usr/lib/qubes/init/iptables /etc/sysconfig/iptables fi -if [ ! -f '/etc/sysconfig/ip6tables' ]; then +if [ ! -f '/etc/sysconfig/ip6tables' -o $1 = 1 ]; then cp -p /usr/lib/qubes/init/ip6tables /etc/sysconfig/ip6tables fi