diff options
| author | John Ogness <john.ogness@linutronix.de> | 2019-02-28 17:29:57 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-02-28 17:29:57 +0106 |
| commit | 374f8fb4d4f767d655b253045d8978a5858d6cf9 (patch) | |
| tree | 7577cc7b178c4801b163d66e6ea6f62a89d2623d | |
| parent | 67ab994696ddb43158af3a951fd420c2a6a243ad (diff) | |
notes: initrd: add information about /init and /dev/console
Signed-off-by: John Ogness <john.ogness@linutronix.de>
| -rw-r--r-- | schulung_tools/notes/initrd.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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 # |
