Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index b9a0c2fb..67230c71 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -1,6 +1,7 @@
"""Arch Linux installer - guided, templates etc."""
import importlib
import os
+import sys
import time
import traceback
from argparse import ArgumentParser, Namespace
@@ -58,7 +59,7 @@ debug(f"Graphics devices detected: {SysInfo._graphics_devices().keys()}")
# For support reasons, we'll log the disk layout pre installation to match against post-installation layout
debug(f"Disk states before installing: {disk.disk_layouts()}")
-if os.getuid() != 0:
+if 'sphinx' not in sys.modules and os.getuid() != 0:
print(_("Archinstall requires root privileges to run. See --help for more."))
exit(1)