Remove unattended script (#3733)

This commit is contained in:
Daniel Girtler 2025-08-27 18:27:25 +10:00 committed by GitHub
parent 7d94210cd3
commit 663e46f86e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 29 deletions

View File

@ -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 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) [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 # Profiles
`archinstall` comes with a set of pre-configured profiles available for selection during the installation process. `archinstall` comes with a set of pre-configured profiles available for selection during the installation process.

View File

@ -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)

View File

@ -18,7 +18,7 @@ offline,``true``!, ``false``,enables or disables certain online checks such as m
packages,[ <package1>!, <package2>!, ... ],A list of packages to install during installation,No packages,[ <package1>!, <package2>!, ... ],A list of packages to install during installation,No
parallel downloads,0-∞,sets a given number of parallel downloads to be used by `pacman <https://wiki.archlinux.org/title/Pacman#Enabling_parallel_downloads>`_,No parallel downloads,0-∞,sets a given number of parallel downloads to be used by `pacman <https://wiki.archlinux.org/title/Pacman#Enabling_parallel_downloads>`_,No
profile_config,*`read more under the profiles section`*,Installs a given profile if defined,No profile_config,*`read more under the profiles section`*,Installs a given profile if defined,No
script,`guided <https://github.com/archlinux/archinstall/blob/master/archinstall/scripts/guided.py>`__! *(default)*!, `minimal <https://github.com/archlinux/archinstall/blob/master/archinstall/scripts/minimal.py>`__!, `only_hdd <https://github.com/archlinux/archinstall/blob/master/archinstall/scripts/only_hdd.py>`_!, `unattended <https://github.com/archlinux/archinstall/blob/master/archinstall/scripts/unattended.py>`_,When used to autorun an installation!, this sets which script to autorun with,No script,`guided <https://github.com/archlinux/archinstall/blob/master/archinstall/scripts/guided.py>`__! *(default)*!, `minimal <https://github.com/archlinux/archinstall/blob/master/archinstall/scripts/minimal.py>`__!, `only_hdd <https://github.com/archlinux/archinstall/blob/master/archinstall/scripts/only_hdd.py>`_!, 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 silent,``true``!, ``false``,disables or enables user questions using the TUI,No
swap,``true``!, ``false``,enables or disables swap,No swap,``true``!, ``false``,enables or disables swap,No
timezone,`timezone <https://wiki.archlinux.org/title/System_time#Time_zone>`_,sets a timezone for the installed system,No timezone,`timezone <https://wiki.archlinux.org/title/System_time#Time_zone>`_,sets a timezone for the installed system,No

Can't render this file because it contains an unexpected character in line 13 and column 68.