File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -56,22 +56,29 @@ Note that `/init` mounts `cgroup2` as `/sys/fs/cgroup` and not the old `cgroup`.
5656
5757## Kernel configuration
5858
59- A minimum kernel configuration would look like this:
59+ A minimal kernel configuration to enable all features of ` /init ` would look like this:
6060
6161 CONFIG_BLK_DEV_INITRD=y
62- CONFIG_INITRAMFS_SOURCE="$PWD/ root"
62+ CONFIG_INITRAMFS_SOURCE=<PATH> # root directory with <PATH>/init
6363 CONFIG_BINFMT_ELF=y
6464 CONFIG_BINFMT_SCRIPT=y
6565 CONFIG_DEVTMPFS=y
6666 CONFIG_PROC_FS=y
6767 CONFIG_SYSFS=y
68+
69+ Since all logs go into the kernel, it's a good idea to increase the size of the log buffer:
70+
6871 CONFIG_LOG_BUF_SHIFT=24
6972
73+ Required for updates:
74+
7075 CONFIG_RELOCATABLE=y
7176 CONFIG_CRYPTO=y
7277 CONFIG_CRYPTO_SHA256=y
7378 CONFIG_KEXEC_FILE=y
7479
80+ Not mandatory but useful to see what's going on :)
81+
7582 CONFIG_PRINTK=y
7683 CONFIG_TTY=y
7784 CONFIG_SERIAL_8250=y
You can’t perform that action at this time.
0 commit comments