mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Check if supervisor run priv (#1993)
This commit is contained in:
parent
f937876a1b
commit
58b88a6919
@ -45,6 +45,10 @@ class Core(CoreSysAttributes):
|
||||
_LOGGER.error(
|
||||
"Detected Docker running inside LXC. Running Home Assistant with the Supervisor on LXC is not supported!"
|
||||
)
|
||||
elif not self.sys_supervisor.instance.privileged:
|
||||
self.supported = False
|
||||
self.healthy = False
|
||||
_LOGGER.error("Supervisor does not run in Privileged mode.")
|
||||
|
||||
if self.sys_docker.info.check_requirements():
|
||||
self.supported = False
|
||||
|
@ -41,12 +41,6 @@ class Supervisor(CoreSysAttributes):
|
||||
with suppress(DockerAPIError):
|
||||
await self.instance.cleanup()
|
||||
|
||||
# Check privileged mode
|
||||
if not self.instance.privileged:
|
||||
_LOGGER.error(
|
||||
"Supervisor does not run in Privileged mode. Hassio runs with limited functionality!"
|
||||
)
|
||||
|
||||
@property
|
||||
def ip_address(self) -> IPv4Address:
|
||||
"""Return IP of Supervisor instance."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user