Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/docs/cli_parameters/config/custom_commands.rst
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2023-11-22 22:45:25 +0100
committerGitHub <noreply@github.com>2023-11-22 22:45:25 +0100
commite28ba953708cee089161a795fb3191cfd5c3d93a (patch)
tree6cc746c2f4d36582d7add747a8f08349ebec9d44 /docs/cli_parameters/config/custom_commands.rst
parentf3b4858a26308b33918226ce18a71de4b3caebb1 (diff)
Restoring back the docs with a commit, as I'm clearly incapable of grasping git's reset/revert features.. (#2249)
Diffstat (limited to 'docs/cli_parameters/config/custom_commands.rst')
-rw-r--r--docs/cli_parameters/config/custom_commands.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/cli_parameters/config/custom_commands.rst b/docs/cli_parameters/config/custom_commands.rst
new file mode 100644
index 00000000..c1529020
--- /dev/null
+++ b/docs/cli_parameters/config/custom_commands.rst
@@ -0,0 +1,22 @@
+.. _custom commands:
+
+Custom Commands
+===============
+
+| Custom commands is a configuration entry that allows for executing custom commands post-installation.
+| The commands are executed with `arch-chroot <https://man.archlinux.org/man/extra/arch-install-scripts/arch-chroot.8.en>`_.
+
+The option takes a list of arguments, an example is:
+
+.. code-block:: json
+
+ {
+ "custom-commands": [
+ "hostname new-hostname"
+ ]
+ }
+
+| The following example will set a new hostname in the installed system.
+| The example is just to illustrate that the command is not run in the ISO but inside the installed system after the base system is installed.
+
+More examples can be found in the code repository under `examples/ <https://github.com/archlinux/archinstall/tree/e6344f93f7e476d05bbcd642f2ed91fdde545870/examples>`_ \ No newline at end of file