From b54126edd51900604e0ca6fc191262ade5d07a71 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Wed, 13 Aug 2025 21:22:56 +1000 Subject: [PATCH] Remove unattended script --- README.md | 8 -------- archinstall/scripts/unattended.py | 20 ------------------- docs/cli_parameters/config/config_options.csv | 2 +- 3 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 archinstall/scripts/unattended.py diff --git a/README.md b/README.md index 3000df94a3..66034bbec3 100644 --- a/README.md +++ b/README.md @@ -115,14 +115,6 @@ For an example of a fully scripted, interactive installation please refer to the For an example of a fully scripted, automated installation please refer to the example [full_automated_installation.py](https://github.com/archlinux/archinstall/blob/master/examples/full_automated_installation.py) -## Unattended installation based on MAC address - -Archinstall comes with an [unattended](https://github.com/archlinux/archinstall/blob/master/examples/mac_address_installation.py) -example which will look for a matching profile for the machine it is being run on, based on any local MAC address. -For instance, if the machine the code is executed on has the MAC address `52:54:00:12:34:56` it will look for a profile called -[52-54-00-12-34-56.py](https://github.com/archlinux/archinstall/blob/master/archinstall/default_profiles/tailored.py). -If it's found, the unattended installation will begin and source that profile as its installation procedure. - # Profiles `archinstall` comes with a set of pre-configured profiles available for selection during the installation process. diff --git a/archinstall/scripts/unattended.py b/archinstall/scripts/unattended.py deleted file mode 100644 index b59fbb4c5e..0000000000 --- a/archinstall/scripts/unattended.py +++ /dev/null @@ -1,20 +0,0 @@ -import time - -from archinstall.lib.output import info -from archinstall.lib.profile.profiles_handler import profile_handler -from archinstall.lib.storage import storage -from archinstall.tui import Tui - -for p in profile_handler.get_mac_addr_profiles(): - # Tailored means it's a match for this machine - # based on it's MAC address (or some other criteria - # that fits the requirements for this machine specifically). - info(f'Found a tailored profile for this machine called: "{p.name}"') - - print('Starting install in:') - for i in range(10, 0, -1): - Tui.print(f'{i}...') - time.sleep(1) - - install_session = storage['installation_session'] - p.install(install_session) diff --git a/docs/cli_parameters/config/config_options.csv b/docs/cli_parameters/config/config_options.csv index e9eccb7f75..4ca77d05f2 100644 --- a/docs/cli_parameters/config/config_options.csv +++ b/docs/cli_parameters/config/config_options.csv @@ -18,7 +18,7 @@ offline,``true``!, ``false``,enables or disables certain online checks such as m packages,[ !, !, ... ],A list of packages to install during installation,No parallel downloads,0-∞,sets a given number of parallel 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 `_!, `unattended `_,When used to autorun an installation!, this sets which script to autorun with,No +script,`guided `__! *(default)*!, `minimal `__!, `only_hdd `_!, 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