When entering pkg_mgr_install the filesystem was being mounted rw and a backup made of the config, even if the case was "showlog" or "installedinfo". This resulted in: a) an extra "backup" of the config being made after an install - it could be seen in Diagnostics, Backup Restore, Config History b) Unnecessary conf_mount_rw and conf_mount_ro calls. These slow down the process on nanobsd-like systems. This change fixes both these issues.
pkg_mgr_install - only mount rw when needed
When entering pkg_mgr_install the filesystem was being mounted rw and a backup made of the config, even if the case was "showlog" or "installedinfo". This resulted in:
a) an extra "backup" of the config being made after an install - it could be seen in Diagnostics, Backup Restore, Config History
b) Unnecessary conf_mount_rw and conf_mount_ro calls. These slow down the process on nanobsd-like systems.
This change fixes both these issues.