aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-06 22:18:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-07 01:33:58 +0200
commitd0764e77b265bc1fc99456ddd3d3e3a088ef1f78 (patch)
treee8304056143d8fd49074ee9431eb1c722b21fc46 /services
parent4f4a377d7acb555193566db3ee459adc19e2e6a5 (diff)
Add pygos specific overlay fs setup
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am3
-rw-r--r--services/rootusr.in5
-rw-r--r--services/tmpfsrun.in1
-rw-r--r--services/tmpfsvar.in10
4 files changed, 18 insertions, 1 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am
index f2a15c8..a19d833 100644
--- a/services/Makemodule.am
+++ b/services/Makemodule.am
@@ -4,6 +4,7 @@ init_DATA += services/sysctl services/hwclock services/sysinit
init_DATA += services/reboot services/shutdown services/sigkill
init_DATA += services/sigterm services/sync services/devfs
init_DATA += services/sysfs services/procfs services/tmpfs
-init_DATA += services/tmpfsrun services/vfs
+init_DATA += services/tmpfsrun services/tmpfsvar services/vfs
+init_DATA += services/rootusr
EXTRA_DIST += services/sysinit services/vfs
diff --git a/services/rootusr.in b/services/rootusr.in
new file mode 100644
index 0000000..fb173db
--- /dev/null
+++ b/services/rootusr.in
@@ -0,0 +1,5 @@
+description "mount /root"
+type wait
+target boot
+before vfs
+exec "@SCRIPTDIR@/overlay.sh" root /root
diff --git a/services/tmpfsrun.in b/services/tmpfsrun.in
index d20e782..c34eccb 100644
--- a/services/tmpfsrun.in
+++ b/services/tmpfsrun.in
@@ -2,6 +2,7 @@ description "mount /run"
type wait
target boot
before vfs
+after tmpfsvar
exec "@SBINPATH@/mount" -t tmpfs none /run
exec "@BINPATH@/mkdir" /run/lock -m 0755
exec "@BINPATH@/ln" -s /run /var/run
diff --git a/services/tmpfsvar.in b/services/tmpfsvar.in
new file mode 100644
index 0000000..7942286
--- /dev/null
+++ b/services/tmpfsvar.in
@@ -0,0 +1,10 @@
+description "mount /var"
+type wait
+target boot
+before vfs
+exec "@SBINPATH@/mount" -t tmpfs none /var
+exec "@BINPATH@/mkdir" /var/log -m 0755
+exec "@BINPATH@/mkdir" /var/spool -m 0755
+exec "@BINPATH@/mkdir" /var/lib -m 0755
+exec "@BINPATH@/mkdir" /var/tmp -m 0755
+exec "@SCRIPTDIR@/overlay.sh" var_lib /var/lib