summaryrefslogtreecommitdiff
path: root/examples/ROOT/mnt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ROOT/mnt')
-rw-r--r--examples/ROOT/mnt/README1
-rw-r--r--examples/ROOT/mnt/procfs/README1
l---------examples/ROOT/mnt/rofs1
-rw-r--r--examples/ROOT/mnt/rwfs/README1
-rw-r--r--examples/ROOT/mnt/sysfs/README1
-rw-r--r--examples/ROOT/mnt/tmpfs/README1
-rw-r--r--examples/ROOT/mnt/tmpfs/dev/README14
7 files changed, 20 insertions, 0 deletions
diff --git a/examples/ROOT/mnt/README b/examples/ROOT/mnt/README
new file mode 100644
index 0000000..7f0e106
--- /dev/null
+++ b/examples/ROOT/mnt/README
@@ -0,0 +1 @@
+The directory containing all the real mount points.
diff --git a/examples/ROOT/mnt/procfs/README b/examples/ROOT/mnt/procfs/README
new file mode 100644
index 0000000..79b2fe0
--- /dev/null
+++ b/examples/ROOT/mnt/procfs/README
@@ -0,0 +1 @@
+/proc will be mounted here.
diff --git a/examples/ROOT/mnt/rofs b/examples/ROOT/mnt/rofs
new file mode 120000
index 0000000..a96aa0e
--- /dev/null
+++ b/examples/ROOT/mnt/rofs
@@ -0,0 +1 @@
+.. \ No newline at end of file
diff --git a/examples/ROOT/mnt/rwfs/README b/examples/ROOT/mnt/rwfs/README
new file mode 100644
index 0000000..c8b4ade
--- /dev/null
+++ b/examples/ROOT/mnt/rwfs/README
@@ -0,0 +1 @@
+If you have a disk read-write filesystem, you may mount it here.
diff --git a/examples/ROOT/mnt/sysfs/README b/examples/ROOT/mnt/sysfs/README
new file mode 100644
index 0000000..9c02561
--- /dev/null
+++ b/examples/ROOT/mnt/sysfs/README
@@ -0,0 +1 @@
+/sys will be mounted here.
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.