From 48d2b18bf88860cd458864e364e8f1c1f1127ebf Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 14 Jan 2018 00:09:40 +0000 Subject: draklive: Fix cleaning of system configuration files. Can't test for file existence when not running as root. Add /etc/shorewall6/interfaces to the list. --- lib/MGA/DrakISO/BuildRoot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm index 65e3a0b..9646508 100644 --- a/lib/MGA/DrakISO/BuildRoot.pm +++ b/lib/MGA/DrakISO/BuildRoot.pm @@ -558,7 +558,7 @@ sub customise_live_system { run_in_root($root, undef, 'perl', '-MStorable', '-e', qq(Storable::store({ UNKNOWN => {} }, '/etc/sysconfig/harddrake2/previous_hw'))); # Remove some build-machine specific configuration. - foreach (qw(/etc/shorewall/interfaces /etc/mdadm.conf)) { + foreach (qw(/etc/shorewall/interfaces /etc/shorewall6/interfaces /etc/mdadm.conf)) { clean_system_conf_file($root . $_); } @@ -650,7 +650,7 @@ sub configure_draklive_resize { sub clean_system_conf_file { my ($file) = @_; - run_as_root('sed', '-i', '/^[^#]/d', $file) if -f $file; + run_as_root('sed', '-i', '/^[^#]/d', $file); } sub write_dist_lists { -- cgit v1.2.1