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.
()
| 13 | |
| 14 | |
| 15 | def 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 | |
| 25 | def generate_password(length: int = 64) -> str: |
no outgoing calls
no test coverage detected