From 88204983c4f70d3bcac78f69703c846203117ff0 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 31 Jul 2023 15:10:12 +0200 Subject: [PATCH] Added final config options in --config, some have external references which needs to be populated --- archinstall/__init__.py | 3 ++- docs/installing/config_options.csv | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/archinstall/__init__.py b/archinstall/__init__.py index 39588904fd..83a9676f86 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 from argparse import ArgumentParser, Namespace from pathlib import Path from typing import TYPE_CHECKING, Any, Dict, Union @@ -58,7 +59,7 @@ 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) diff --git a/docs/installing/config_options.csv b/docs/installing/config_options.csv index ed313cbbaa..16062a46ad 100644 --- a/docs/installing/config_options.csv +++ b/docs/installing/config_options.csv @@ -12,3 +12,13 @@ custom-commands,[ !, !, ...],Custom commands that will be ru locale_config,{kb_layout: `lang `_!, sys_enc: `Character encoding `_!, sys_lang: `locale `_},Defines the keyboard key map!, system encoding and system locale,No mirror_config,{custom_mirrors: [ https://... ]!, mirror_regions: { "Worldwide": [ "https://geo.mirror.pkgbuild.com/$repo/os/$arch" ] } },Sets various mirrors *(defaults to ISO's ``/etc/pacman.d/mirrors`` if not defined)*,No network_config,*`see options under Network Configuration`*,Sets which type of *(if any)* network configuration should be used,No +no_pkg_lookups,``true``!,``false``,Disabled package checking against https://archlinux.org/packages/,No +ntp,``true``!,``false``,enables or disables `NTP `_ during installation,No +offline,``true``!,``false``,enables or disables certain online checks such as mirror reachability etc,No +packages,[ !, !, ... ],A list of packages to install during installation,No +parallel downloads,0-∞,sets a given number of paralell downloads to be used by `pacman `_,No +profile_config,*`read more under the profiles section`*,Installs a given profile if defined,No +script,`guided `_! *(default)*, `minimal `_!, `only_hdd `_!, `swiss `_!, `unattended `_,When used to autorun an installation!, this sets which script to autorun with,No +silent,``true``!,``false``,disables or enables user questions using the TUI,No +swap,``true``!,``false``,enables or disables swap,No +timezone,`timezone `_,sets a timezone for the installed system,No \ No newline at end of file