summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
1 files changed, 32 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8f037b3..00ed942 100644
--- a/README.md
+++ b/README.md
@@ -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
60Example: 60### Example using initrd:
61 61
62``` 62```
63root=/dev/sda1 rootfstype=ext4 rootrw=/dev/sda2 rootrwfstype=btrfs 63root=/dev/sda1 rootrw=/dev/sda2
64``` 64```
65 65
66This cmd line start `/sbin/init` with the `/dev/sda1` partition as the read-only
67rootfs and the `/dev/sda2` partition as the read-write persistend state.
68
69```
70root=/dev/sda1 rootrw=/dev/sda2 init=/bin/sh
71```
72
73The same as before but it now starts `/bin/sh` instead of `/sbin/init`.
74
75### Example without initrd:
76
77```
78root=/dev/sda1 rootrw=/dev/sda2 init=/init
79```
80
81This cmd line starts `/sbin/init` with `/dev/sda1` partition as the read-only
82rootfs and the `/dev/sda2` partition as the read-write persistend state. When
83using this init script without an initrd, `init=/init` has to be set.
84
85```
86root=/dev/sda1 rootrw=/dev/sda2 init=/init rootinit=/bin/sh
87```
88
89The 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
67specified, the current rootfs is used. 94specified, 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
70kernel, you can specifiy the required module name here. 97kernel, 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
73specified, `tmpfs` is used. 103specified, `tmpfs` is used.
74 104