Skip to content

Commit

Permalink
Document "init" command line option (#100)
Browse files Browse the repository at this point in the history
Document "init" command line option.
  • Loading branch information
phaubertin authored Dec 3, 2024
1 parent c0fb66e commit 9f6153f
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions doc/cmdline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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.
Expand Down

0 comments on commit 9f6153f

Please sign in to comment.