-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install: Generalize
root-fs-type
into install.filesystem.root.type
Keep (but soft-deprecate) the existing `root-fs-type`, and add a more general set of tables in `install.filesystem.root`, with `type` as a field underneath that. This somewhat resembles the [Image Builder blueprint](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/composing_a_customized_rhel_system_image/creating-system-images-with-composer-command-line-interface_composing-a-customized-rhel-system-image#composer-blueprint-format_creating-system-images-with-composer-command-line-interface) design. In particular, this aims to leave space for #287 where we'd add e.g. ``` [install.filesystem.root] extra = "5G" ``` for size specification. Another obvious extension would be `options` to pass through options to `mkfs.$fs`; not clear to me we totally want to go there, but we clearly need something a bit more general. Signed-off-by: Colin Walters <walters@verbum.org>
- Loading branch information
Showing
5 changed files
with
202 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
% bootc-install-config(5) | ||
|
||
# NAME | ||
|
||
bootc-install-config.toml | ||
|
||
# DESCRIPTION | ||
|
||
The `bootc install` process supports some basic customization. This configuration file | ||
is in TOML format, and will be discovered by the installation process in via "drop-in" | ||
files in `/usr/lib/bootc/install` that are processed in alphanumerical order. | ||
|
||
The individual files are merged into a single final installation config, so it is | ||
supported for e.g. a container base image to provide a default root filesystem type, | ||
that can be overridden in a derived container image. | ||
|
||
# install | ||
|
||
This is the only defined toplevel table. | ||
|
||
The `install`` section supports two subfields: | ||
|
||
- `filesystem`: See below. | ||
- `kargs`: An array of strings; this will be appended to the set of kernel arguments. | ||
|
||
# filesystem | ||
|
||
There is one valid field: | ||
|
||
- `root`: An instance of "filesystem-root"; see below | ||
|
||
# filesystem-root | ||
|
||
There is one valid field: | ||
|
||
`type`: This can be any basic Linux filesystem with a `mkfs.$fstype`. For example, `ext4`, `xfs`, etc. | ||
|
||
# Examples | ||
|
||
```toml | ||
[install.filesystem.root] | ||
type = "xfs" | ||
[install] | ||
kargs = ["nosmt", "console=tty0"] | ||
``` | ||
|
||
# SEE ALSO | ||
|
||
**bootc(1)** |