[pve-devel] [PATCH pve-firewall 1/3] don't update if /etc/pve is not mounted
Alexandre Derumier
aderumier at odiso.com
Wed Jan 9 14:56:51 CET 2019
---
src/PVE/Firewall.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm
index 39f79d4..71327b0 100644
--- a/src/PVE/Firewall.pm
+++ b/src/PVE/Firewall.pm
@@ -4186,6 +4186,9 @@ sub init {
sub update {
my $code = sub {
+ eval { PVE::Cluster::check_cfs_is_mounted() };
+ return if $@;
+
my $cluster_conf = load_clusterfw_conf();
my $cluster_options = $cluster_conf->{options};
--
2.11.0
More information about the pve-devel
mailing list