summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-23 06:13:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-23 06:13:30 +0000
commit0aa65a5eb9584c9c2820c45704fb6de15c356bc9 (patch)
treef430db052d357b9b215806bf605b2f662f6c7f7c
parentbfd1cd6b229da81b892a37fd813dc4fb641e5075 (diff)
downloadpfsense-0aa65a5eb9584c9c2820c45704fb6de15c356bc9.zip
pfsense-0aa65a5eb9584c9c2820c45704fb6de15c356bc9.tar.gz
Do not allow ro mount when an upgrade is in progress
-rw-r--r--etc/inc/config.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index c99a8ea..e0872e4 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -518,6 +518,10 @@ function conf_mount_ro() {
if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
return;
+ /* If a firmware upgrade is in progress, do not mount ro */
+ if(file_exists($d_firmwarelock_path))
+ return;
+
/* sync data, then force a remount of /cf */
mwexec("/bin/sync");
mwexec("/sbin/mount -u -r -f {$g['cf_path']}");
OpenPOWER on IntegriCloud