summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.bootup
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-04-07 16:20:13 -0300
committerRenato Botelho <renato@netgate.com>2016-04-07 16:20:13 -0300
commit7b3b231488802041f82d8e85aee5f4da32d6e447 (patch)
treec458086eaecc01b4cb0aeee5faf91792ac0cc8d1 /src/etc/rc.bootup
parentb74f5074d125d8600d7f1bba541044c6b63ab4de (diff)
downloadpfsense-7b3b231488802041f82d8e85aee5f4da32d6e447.zip
pfsense-7b3b231488802041f82d8e85aee5f4da32d6e447.tar.gz
Do not try to register pre-installed packages on read-only media
Diffstat (limited to 'src/etc/rc.bootup')
-rwxr-xr-xsrc/etc/rc.bootup4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup
index 5c8b613..5ddc69d 100755
--- a/src/etc/rc.bootup
+++ b/src/etc/rc.bootup
@@ -419,7 +419,9 @@ if (file_exists('/conf/needs_package_sync') &&
}
/* Detect installed binary pkgs that are not registered in the system */
-register_all_installed_packages();
+if ($g['platform'] != "cdrom") {
+ register_all_installed_packages();
+}
/* Give syslogd a kick after everything else has been initialized, otherwise it can occasionally
fail to route syslog messages properly on both IPv4 and IPv6 */
OpenPOWER on IntegriCloud