diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 34 |
1 files changed, 32 insertions, 2 deletions
@@ -57,18 +57,48 @@ If you use this layer you do *not* need to set `read-only-rootfs` in the | |||
57 | 57 | ||
58 | ## Kernel command line parameters | 58 | ## Kernel command line parameters |
59 | 59 | ||
60 | Example: | 60 | ### Example using initrd: |
61 | 61 | ||
62 | ``` | 62 | ``` |
63 | root=/dev/sda1 rootfstype=ext4 rootrw=/dev/sda2 rootrwfstype=btrfs | 63 | root=/dev/sda1 rootrw=/dev/sda2 |
64 | ``` | 64 | ``` |
65 | 65 | ||
66 | This cmd line start `/sbin/init` with the `/dev/sda1` partition as the read-only | ||
67 | rootfs and the `/dev/sda2` partition as the read-write persistend state. | ||
68 | |||
69 | ``` | ||
70 | root=/dev/sda1 rootrw=/dev/sda2 init=/bin/sh | ||
71 | ``` | ||
72 | |||
73 | The same as before but it now starts `/bin/sh` instead of `/sbin/init`. | ||
74 | |||
75 | ### Example without initrd: | ||
76 | |||
77 | ``` | ||
78 | root=/dev/sda1 rootrw=/dev/sda2 init=/init | ||
79 | ``` | ||
80 | |||
81 | This cmd line starts `/sbin/init` with `/dev/sda1` partition as the read-only | ||
82 | rootfs and the `/dev/sda2` partition as the read-write persistend state. When | ||
83 | using this init script without an initrd, `init=/init` has to be set. | ||
84 | |||
85 | ``` | ||
86 | root=/dev/sda1 rootrw=/dev/sda2 init=/init rootinit=/bin/sh | ||
87 | ``` | ||
88 | |||
89 | The same as before but it now starts `/bin/sh` instead of `/sbin/init` | ||
90 | |||
91 | ### Details | ||
92 | |||
66 | `root=` specifies the read-only root filesystem device. If this is not | 93 | `root=` specifies the read-only root filesystem device. If this is not |
67 | specified, the current rootfs is used. | 94 | specified, the current rootfs is used. |
68 | 95 | ||
69 | `rootfstype=` if support for the-read only filesystem is not build into the | 96 | `rootfstype=` if support for the-read only filesystem is not build into the |
70 | kernel, you can specifiy the required module name here. | 97 | kernel, you can specifiy the required module name here. |
71 | 98 | ||
99 | `rootinit=` if the `init` parameter was used to specify this init script, | ||
100 | `rootinit` can be used to overwrite the default (`/sbin/init`). | ||
101 | |||
72 | `rootrw=` specifies the read-write filesystem device. If this is not | 102 | `rootrw=` specifies the read-write filesystem device. If this is not |
73 | specified, `tmpfs` is used. | 103 | specified, `tmpfs` is used. |
74 | 104 | ||