diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-19 01:28:09 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-19 01:28:09 +0000 |
commit | df8c8876bc245c6124dd4691e5a95d8f397ca152 (patch) | |
tree | fcfec66704123b58c286aab83af16ab1b5248a21 /examples/ROOT/mnt/tmpfs | |
parent | 90acd08f35f9691753fdd523c6970365b6ea4b73 (diff) | |
download | s6-df8c8876bc245c6124dd4691e5a95d8f397ca152.tar.xz |
Add examples/ subtree
Diffstat (limited to 'examples/ROOT/mnt/tmpfs')
-rw-r--r-- | examples/ROOT/mnt/tmpfs/README | 1 | ||||
-rw-r--r-- | examples/ROOT/mnt/tmpfs/dev/README | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/examples/ROOT/mnt/tmpfs/README b/examples/ROOT/mnt/tmpfs/README new file mode 100644 index 0000000..0900a3a --- /dev/null +++ b/examples/ROOT/mnt/tmpfs/README @@ -0,0 +1 @@ +The general tmpfs will be mounted here. diff --git a/examples/ROOT/mnt/tmpfs/dev/README b/examples/ROOT/mnt/tmpfs/dev/README new file mode 100644 index 0000000..4489cc5 --- /dev/null +++ b/examples/ROOT/mnt/tmpfs/dev/README @@ -0,0 +1,14 @@ +This directory (/mnt/tmpfs/dev on the root filesystem) will +be brutally overriden when the tmpfs is mounted. Its only +purpose is to provide an initial /dev/console to the kernel +when it starts process 1. +The directory should contain a working /dev/console device! + + init-stage1 will close all handles to this /dev/console, +then mount the tmpfs and copy the tmpfs image to the tmpfs +- the image contains a full version of /dev, which will then +be used. + This trick is necessary to have a working read-write /dev +when you have a root-only filesystem and when you cannot or +do not want to rely on fancy Linux-specific tricks such as +devtmpfs. |