aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am6
-rw-r--r--services/devfs.in6
-rw-r--r--services/hostname.in2
-rw-r--r--services/hwclock.in1
-rw-r--r--services/loopback.in2
-rw-r--r--services/procfs.in7
-rwxr-xr-xservices/sysctl.in2
-rw-r--r--services/sysfs.in11
-rw-r--r--services/tmpfs.in5
-rw-r--r--services/tmpfsrun.in8
-rw-r--r--services/vfs3
11 files changed, 48 insertions, 5 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am
index c9eeeec..f2a15c8 100644
--- a/services/Makemodule.am
+++ b/services/Makemodule.am
@@ -2,6 +2,8 @@ initdir = @TEMPLATEDIR@
init_DATA = services/agetty services/hostname services/loopback
init_DATA += services/sysctl services/hwclock services/sysinit
init_DATA += services/reboot services/shutdown services/sigkill
-init_DATA += services/sigterm services/sync
+init_DATA += services/sigterm services/sync services/devfs
+init_DATA += services/sysfs services/procfs services/tmpfs
+init_DATA += services/tmpfsrun services/vfs
-EXTRA_DIST += services/sysinit
+EXTRA_DIST += services/sysinit services/vfs
diff --git a/services/devfs.in b/services/devfs.in
new file mode 100644
index 0000000..271eae7
--- /dev/null
+++ b/services/devfs.in
@@ -0,0 +1,6 @@
+description "mount /dev"
+type wait
+target boot
+after procfs sysfs
+before vfs
+exec "@SCRIPTDIR@/devfs.sh"
diff --git a/services/hostname.in b/services/hostname.in
index 55b71d9..678e07e 100644
--- a/services/hostname.in
+++ b/services/hostname.in
@@ -3,4 +3,4 @@ exec "@BINPATH@/hostname" --file /etc/hostname
type wait
target boot
before sysinit
-after hwclock
+after hwclock vfs
diff --git a/services/hwclock.in b/services/hwclock.in
index d07b3e7..af3a4e4 100644
--- a/services/hwclock.in
+++ b/services/hwclock.in
@@ -3,3 +3,4 @@ exec "@SBINPATH@/hwclock" --hctosys --utc
type wait
target boot
before sysinit
+after vfs
diff --git a/services/loopback.in b/services/loopback.in
index a01225a..f76bd42 100644
--- a/services/loopback.in
+++ b/services/loopback.in
@@ -2,7 +2,7 @@ description configure network loopback device
type wait
target boot
before sysinit
-after hwclock hostname
+after hwclock hostname vfs
exec "@SBINPATH@/ip" addr add 127.0.0.1/8 dev lo brd +
exec "@SBINPATH@/ip" link set lo up
diff --git a/services/procfs.in b/services/procfs.in
new file mode 100644
index 0000000..76d479f
--- /dev/null
+++ b/services/procfs.in
@@ -0,0 +1,7 @@
+description "mount /proc"
+type wait
+target boot
+before vfs
+
+exec "@SBINPATH@/mount" -t proc proc /proc
+exec "@SCRIPTDIR@/trymount.sh" "/proc/sys/fs/binfmt_misc" "binfmt_misc" "nodev,noexec,nosuid"
diff --git a/services/sysctl.in b/services/sysctl.in
index 2221480..e2e6eaa 100755
--- a/services/sysctl.in
+++ b/services/sysctl.in
@@ -3,4 +3,4 @@ exec "@SBINPATH@/sysctl" --system
type wait
target boot
before sysinit
-after hwclock hostname
+after hwclock hostname vfs
diff --git a/services/sysfs.in b/services/sysfs.in
new file mode 100644
index 0000000..4c0f6ce
--- /dev/null
+++ b/services/sysfs.in
@@ -0,0 +1,11 @@
+description "mount /sys"
+type wait
+target boot
+after procfs
+before vfs
+
+exec "@SBINPATH@/mount" -t sysfs sysfs /sys
+exec "@SCRIPTDIR@/trymount.sh" "/sys/kernel/security" "securityfs" "nodev,noexec,nosuid"
+exec "@SCRIPTDIR@/trymount.sh" "/sys/kernel/config" "configfs" "nodev,noexec,nosuid"
+exec "@SCRIPTDIR@/trymount.sh" "/sys/fs/fuse/connections" "fusectl" "nodev,noexec,nosuid"
+exec "@SCRIPTDIR@/trymount.sh" "/sys/firmware/efi/efivars" "efivarfs" "ro"
diff --git a/services/tmpfs.in b/services/tmpfs.in
new file mode 100644
index 0000000..1aa48cc
--- /dev/null
+++ b/services/tmpfs.in
@@ -0,0 +1,5 @@
+description "mount /tmp"
+type wait
+target boot
+before vfs
+exec "@SBINPATH@/mount" -t tmpfs none /tmp
diff --git a/services/tmpfsrun.in b/services/tmpfsrun.in
new file mode 100644
index 0000000..d20e782
--- /dev/null
+++ b/services/tmpfsrun.in
@@ -0,0 +1,8 @@
+description "mount /run"
+type wait
+target boot
+before vfs
+exec "@SBINPATH@/mount" -t tmpfs none /run
+exec "@BINPATH@/mkdir" /run/lock -m 0755
+exec "@BINPATH@/ln" -s /run /var/run
+exec "@BINPATH@/ln" -s /run/lock /var/lock
diff --git a/services/vfs b/services/vfs
new file mode 100644
index 0000000..27cc9e9
--- /dev/null
+++ b/services/vfs
@@ -0,0 +1,3 @@
+description VFS setup done
+type once
+target boot