From 374f8fb4d4f767d655b253045d8978a5858d6cf9 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 28 Feb 2019 17:29:57 +0106 Subject: notes: initrd: add information about /init and /dev/console Signed-off-by: John Ogness --- schulung_tools/notes/initrd.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/schulung_tools/notes/initrd.txt b/schulung_tools/notes/initrd.txt index e88b20b..8c1fbd7 100644 --- a/schulung_tools/notes/initrd.txt +++ b/schulung_tools/notes/initrd.txt @@ -28,6 +28,7 @@ gzip -9 initrd.img # - the size is limited by the kernel configurations # (CONFIG_BLK_DEV_RAM, CONFIG_BLK_DEV_RAM_SIZE) # - the kernel root= parameter must be set to /dev/ram0 +# (an initrd is the root filesystem, i.e. /sbin/init is called) # - the real root filesystem must unmount it after pivot_root # (which means the real root filesystem has knowledge of an initrd) # @@ -38,4 +39,6 @@ gzip -9 initrd.img # - does not require any special boot arguments # - does not need to be "cleaned up" after switch_root # (the real root filesystem has no knowledge that an initrd existed) +# - the kernel calls /init instead of /sbin/init +# - /dev/console is required if replacing the built-in initramfs # -- cgit v1.2.3