From 9f6153f21161170971f753ffc9959ceea3c6ad6d Mon Sep 17 00:00:00 2001 From: Philippe Aubertin <39178965+phaubertin@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:43:03 -0500 Subject: [PATCH] Document "init" command line option (#100) Document "init" command line option. --- doc/cmdline.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/doc/cmdline.md b/doc/cmdline.md index 300de080..1329e433 100644 --- a/doc/cmdline.md +++ b/doc/cmdline.md @@ -39,15 +39,16 @@ For user space environment variables, the behaviour is undefined. ## Supported Kernel Options -| Name | Type | Description | -|------------------|---------|--------------------------------------------------------------| -| on_panic | string | Action to take after a kernel panic | -| pae | string | Controls whether Physical Address Extension (PAE) is enabled | -| serial_enable | boolean | Enable/disable logging on the serial port | -| serial_baud_rate | integer | Baud rate for serial port logging | -| serial_ioport | integer | I/O port address for serial port logging | -| serial_dev | string | Serial port device used for logging | -| vga_enable | boolean | Enable/disable logging to video (VGA) | +| Name | Type | Description | +|---------------------|---------|--------------------------------------------------------------| +| `init` | string | Path to initial program in initial RAM disk | +| `on_panic` | string | Action to take after a kernel panic | +| `pae` | string | Controls whether Physical Address Extension (PAE) is enabled | +| `serial_enable` | boolean | Enable/disable logging on the serial port | +| `serial_baud_rate` | integer | Baud rate for serial port logging | +| `serial_ioport` | integer | I/O port address for serial port logging | +| `serial_dev` | string | Serial port device used for logging | +| `vga_enable` | boolean | Enable/disable logging to video (VGA) | For boolean options: @@ -59,6 +60,17 @@ Integer option values can be specified as a decimal number without any leading zero (e.g. `42` but not `042`) or as an hexadecimal number prepended with `0x` (e.g. `0x3f8`). +### Initial Program Path - `init` + +Path to initial program in the extracted initial RAM disk. + +Type: string + +The user space loader loads this executable binary as the initial process. It +must be an ELF binary. + +The default for this option is `/sbin/init`. + ### Kernel Panic Action - `on_panic` Action to take after a kernel panic.