Do not try to register pre-installed packages on read-only media

This commit is contained in:
Renato Botelho 2016-04-07 16:20:13 -03:00
parent ac0c3db7e1
commit 83a8d6f017

View File

@ -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 */