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

Function running_from_iso

archinstall/lib/utils/util.py:15–22  ·  view source on GitHub ↗

Check if running from the archiso environment. Returns True if /run/archiso/airootfs is a mount point (ISO mode). Returns False if running from installed system (host mode) for host-to-target install.

()

Source from the content-addressed store, hash-verified

13
14
15def running_from_iso() -> bool:
16 """
17 Check if running from the archiso environment.
18
19 Returns True if /run/archiso/airootfs is a mount point (ISO mode).
20 Returns False if running from installed system (host mode) for host-to-target install.
21 """
22 return ARCHISO_MOUNTPOINT.is_mount()
23
24
25def generate_password(length: int = 64) -> str:

Callers 6

runFunction · 0.90
_set_fontMethod · 0.90
save_console_fontMethod · 0.90
restore_console_fontMethod · 0.90
apply_console_fontMethod · 0.90
set_kb_layoutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected