You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This example assumes that the ESP is the first partition on `/dev/sda`, the kernel is named `vmlinuz-gentoo.efi` under the root of the ESP, and `ugrd.cpio` is also on the ESP root.
101
+
102
+
> On some systems, the EFI may remove entries that don't follow a particular format.
103
+
71
104
## Runtime usage
72
105
73
106
`ugrd` runs the `init` script generated in the build dir. In cases where `agetty` is needed, all but basic initialization and the final switch_root are performed in `init_main.sh`.
@@ -78,13 +111,6 @@ UGRD should prompt for relevant input or warn if devices are missing at runtime.
78
111
79
112
In the event of a failure, modules will either fail through, or re-exec the init script.
80
113
81
-
## Output
82
-
83
-
Unless the `ugrd.base.cpio` module is included, an initramfs environment will be generated at `build_dir` which defaults to `/tmp/initramfs/`.
84
-
85
-
This directory can be embedded into the Linux kernel using `CONFIG_INITRAMFS_SOURCE="/tmp/initramfs"`.
86
-
`CONFIG_INITRAMFS_SOURCE` can also be pointed at a CPIO archive, but is easiest to use with a directory.
87
-
88
114
If a CPIO file is generated, it can be passed to the bootloader. Embedding the initramfs into the kernel is preferred, as the entire kernel image can be signed.
0 commit comments