Install custom symbols. Fixes #2492

This commit is contained in:
grossmj committed 2025-01-29 18:32:04 +10:00
1 parent f2bb785037
commit 2516b1952c
3 files changed
+20 -40

No files matched your search

+14
View File
@@ -74,6 +74,7 @@ class Controller:
log.info("Controller is starting")
await self._install_base_configs()
await self._install_custom_symbols()
installed_disks = await self._install_builtin_disks()
if installed_disks:
await update_disk_checksums(installed_disks)
@@ -371,6 +372,19 @@ class Controller:
except OSError as e:
log.error(f"Could not install disk files to {dst_path}: {e}")
async def _install_custom_symbols(self):
"""
At startup we copy custom symbols to the user location to allow
them to use with appliances
"""
dst_path = self.symbols.symbols_path()
log.info(f"Installing custom symbols in '{dst_path}'")
try:
return await Controller.install_resource_files(dst_path, "custom_symbols", upgrade_resources=False)
except OSError as e:
log.error(f"Could not install custom symbols to {dst_path}: {e}")
def images_path(self):
"""
Get the image storage directory