From de331d8e90631240966a299bda9be9d40e4b658c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 7 Apr 2016 16:20:13 -0300 Subject: Do not try to register pre-installed packages on read-only media --- src/etc/rc.bootup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- cgit v1.1