docs: clarify rdinit precedence and correct ramdisk to initramfs
PATCH 1/1 docs: clarify rdinit precedence and correct ramdisk to initramfs
Problem: Current documentation regarding the init and rdinit params is confusing,
The description of rdinit claims that it is related to ramdisks, even though in practice
It only controls the init executable of the initramfs
(the deprecated ramdisk mechanism is initialized only after attempting to load rdinit
or its default "/init")
Rob Landley's document from 2005 "Ramfs, rootfs and initramfs" clarifies the distinction between initramfs and ramdisk.
Another confusing point is that the init param is ignored, in case rdinit or "/init"
exist and are executable in the initramfs; the source code gives priority to rdinit.
Solution: Add more clarification to the kernel params documentation, and fix From ramdisk to initramfs in the rdinit doc.
--- Documentation/admin-guide/kernel-parameters.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
(quoted diff) +0 -0
b/Documentation/admin-guide/kernel-parameters.txt
index fb8752b42ec8..246cb73f71a8 100644
Documentation/admin-guide/kernel-parameters.txt +1 -0
@@ -2182,6 +2182,8 @@ Format: <full_path> Run specified binary instead of /sbin/init as init process. + Note that rdinit= or /init if rdinit= is not set
will take
+ precedence in case they are found in the initramfs.
initcall_debug [KNL] Trace initcalls as they are executed. Useful
for working out where the kernel is dying during
@@ -5933,8 +5935,8 @@
rdinit= [KNL]
Format: <full_path>
- Run specified binary instead of /init from the
ramdisk,
- used for early userspace startup. See initrd.
+ Run specified binary instead of /init from the
initramfs,
+ used for early userspace startup.
rdrand= [X86,EARLY]
force - Override the decision by the kernel to hide
the
Signature · 1 line
2.39.5
Quoted 6 lines · Nir Lichtman
Problem: Current documentation regarding the init and rdinit params is confusing,
The description of rdinit claims that it is related to ramdisks, even though in practice
It only controls the init executable of the initramfs
(the deprecated ramdisk mechanism is initialized only after attempting to
Quoted 9 lines
load rdinit
or its default "/init")
Rob Landley's document from 2005 "Ramfs, rootfs and initramfs" clarifies the distinction between initramfs and ramdisk.
Another confusing point is that the init param is ignored, in case rdinit or "/init"
exist and are executable in the initramfs; the source code gives priority to rdinit.
Odd line-wrapping, please fix :(
Quoted 19 lines
Solution: Add more clarification to the kernel params documentation, and fix
Quoted 1 line
From ramdisk to initramfs in the rdinit doc.
Signed-off-by Nir Lichtman <[email protected]>--- Documentation/admin-guide/kernel-parameters.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)Documentation/admin-guide/kernel-parameters.txt +1
-0@@ -2182,6 +2182,8 @@ Format: <full_path> Run specified binary instead of /sbin/init as init process. + Note that rdinit= or /init if rdinit= is not setwill take
Documentation/admin-guide/kernel-parameters.txt
Quoted 1 line
Documentation/admin-guide/kernel-parameters.txt +1
-0+ precedence in case they are found in the initramfs.
Your patch is also line-wrapped and will not apply at all :(
thanks,
greg k-h
Quoted 19 lines · Greg KH
Quoted 6 lines · Nir Lichtman
Problem: Current documentation regarding the init and rdinit params is confusing,
The description of rdinit claims that it is related to ramdisks, even though in practice
It only controls the init executable of the initramfs
(the deprecated ramdisk mechanism is initialized only after attempting toQuoted 9 lines
load rdinit
or its default "/init")
Rob Landley's document from 2005 "Ramfs, rootfs and initramfs" clarifies the distinction between initramfs and ramdisk.
Another confusing point is that the init param is ignored, in case rdinit or "/init"
exist and are executable in the initramfs; the source code gives priority to rdinit.Odd line-wrapping, please fix :(
[..]
Quoted 2 lines
Your patch is also line-wrapped and will not apply at all :(
Oops mistake, sorry about that, sending a fixed v2.
Quoted 4 lines
thanks,
greg k-h