MCPcopy Index your code
hub / github.com/archlinux/archinstall / virtualization

Method virtualization

archinstall/lib/hardware.py:294–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292
293 @staticmethod
294 def virtualization() -> str | None:
295 try:
296 return str(SysCommand('systemd-detect-virt')).strip('\r\n')
297 except SysCallError as err:
298 debug(f'Could not detect virtual system: {err}')
299
300 return None
301
302 @staticmethod
303 def is_vm() -> bool:

Callers 1

_log_sys_infoFunction · 0.80

Calls 2

SysCommandClass · 0.90
debugFunction · 0.90

Tested by

no test coverage detected