Compare commits
32 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
22f0fca0fd | ||
![]() |
069c32c3c1 | ||
![]() |
36cf18ab0f | ||
![]() |
be97f38a80 | ||
![]() |
1b297934a6 | ||
![]() |
230d30ff1a | ||
![]() |
8a2027df08 | ||
![]() |
d2a83294e0 | ||
![]() |
a221f2dd22 | ||
![]() |
905d8f07b2 | ||
![]() |
244c0a4203 | ||
![]() |
fa04d943a6 | ||
![]() |
1758a4fe48 | ||
![]() |
22bfa5e1a5 | ||
![]() |
49d7bc3436 | ||
![]() |
615bfc18a4 | ||
![]() |
0895fd81ac | ||
![]() |
c56a5527ea | ||
![]() |
fad5c2878f | ||
![]() |
7c08fd3298 | ||
![]() |
d8ded07d97 | ||
![]() |
14255da33d | ||
![]() |
227e9634e4 | ||
![]() |
bd944a7194 | ||
![]() |
a70d048192 | ||
![]() |
33e7d5b330 | ||
![]() |
5134fa1da5 | ||
![]() |
2d95062402 | ||
![]() |
502e66ab40 | ||
![]() |
f0d29a96d4 | ||
![]() |
465df8bf18 | ||
![]() |
d13bf1f770 |
113
_s6-svc
Normal file
113
_s6-svc
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
#compdef s6-svc
|
||||||
|
|
||||||
|
# completion for s6-svc
|
||||||
|
# Eric Vidal <eric@obarun.org>
|
||||||
|
# services in /run/s6/service. Change the path variable to suit your needs.
|
||||||
|
|
||||||
|
path_dir=/run/s6/service
|
||||||
|
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
|
_path() {
|
||||||
|
local list_dir
|
||||||
|
list_dir=( $path_dir/* )
|
||||||
|
compadd "$@" -a list_dir
|
||||||
|
}
|
||||||
|
|
||||||
|
_list_common=(
|
||||||
|
'-a[send a SIGALRM to the supervised process]'
|
||||||
|
'-b[send a SIGABRT to the supervised process]'
|
||||||
|
'-q[send a SIGQUIT to the supervised process]'
|
||||||
|
'-h[send a SIGHUP to the supervised process]'
|
||||||
|
'-k[send a SIGKILL to the supervised process]'
|
||||||
|
'-t[send a SIGTERM to the supervised process]'
|
||||||
|
'-i[send a SIGINT to the supervised process]'
|
||||||
|
'-1[send a SIGUSR1 to the supervised process]'
|
||||||
|
'-2[send a SIGUSR2 to the supervised process]'
|
||||||
|
'-p[send a SIGSTOP to the supervised process]'
|
||||||
|
'-c[send a SIGCONT to the supervised process]'
|
||||||
|
'-y[send a SIGWINCH to the supervised process]'
|
||||||
|
'-o[once. Equivalent to -uO]'
|
||||||
|
'-d[down]'
|
||||||
|
'-u[up]'
|
||||||
|
'-x[exit]'
|
||||||
|
'-X[close fds and exit]'
|
||||||
|
'-O[Once at most. Do not restart when it dies]'
|
||||||
|
'-T[timeout]'
|
||||||
|
)
|
||||||
|
|
||||||
|
_list_special=(
|
||||||
|
'-wd[s6-svc will not exit until the service is down]'
|
||||||
|
'-wD[s6-svc will not exit until the service is down and ready to be brought up]'
|
||||||
|
'-wu[s6-svc will not exit until the service is up]'
|
||||||
|
'-wU[s6-svc will not exit until the service is up and ready]'
|
||||||
|
'-wr[s6-svc will not exit until the service has been started or restarted]'
|
||||||
|
'-wR[same as -wr but need to be notified readiness]'
|
||||||
|
)
|
||||||
|
|
||||||
|
_svc_action_none() {
|
||||||
|
_arguments \
|
||||||
|
"$_list_common[@]" \
|
||||||
|
"$_list_special[@]"
|
||||||
|
}
|
||||||
|
|
||||||
|
_svc() {
|
||||||
|
local context line i
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
|
case $words[CURRENT] in
|
||||||
|
|
||||||
|
*wd*|*wD*|*wu*|*wU*|*wr*|*wR*)
|
||||||
|
_arguments -s : \
|
||||||
|
"$_list_common[@]" \
|
||||||
|
"$_list_special[@]" \
|
||||||
|
'*:service:_path'
|
||||||
|
;;
|
||||||
|
*a*|*b*|*q*|*h*|*k*|*t*|*i*|*1*|*2*|*p*|*c*|*y*|*o*|*d*|*u*|*x*|*X*|*O*)
|
||||||
|
if [[ $words[CURRENT] == -*T ]]; then
|
||||||
|
_arguments : \
|
||||||
|
':\if the -wstate option has been given, -T specifies a timeout in milliseconds: ' \
|
||||||
|
'*:service:_path'
|
||||||
|
else
|
||||||
|
_arguments -s : \
|
||||||
|
"$_list_common[@]" \
|
||||||
|
"$_list_special[@]" \
|
||||||
|
'*:service:_path'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
-T)
|
||||||
|
_arguments -s : \
|
||||||
|
':if the -wstate option has been given, -T specifies a timeout in milliseconds: ' \
|
||||||
|
'*:service:_path'
|
||||||
|
;;
|
||||||
|
|
||||||
|
*) i=$#;
|
||||||
|
while [[ $words[$i] != "s6-svc" ]];do
|
||||||
|
if [[ $words[$i] == -* ]]; then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
i=$(($i-1))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
case $i in
|
||||||
|
-*)
|
||||||
|
if [[ $words[$i] != "s6-svc" ]]; then
|
||||||
|
_arguments -s : \
|
||||||
|
"$_list_common[@]" \
|
||||||
|
"$_list_special[@]" \
|
||||||
|
'*:service:_path'
|
||||||
|
else
|
||||||
|
_message "enter a - character to begin the completion"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
_svc_action_none
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
_svc "$@"
|
1
compiled/current
Symbolic link
1
compiled/current
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6/compiled/default
|
BIN
compiled/default/db
Normal file
BIN
compiled/default/db
Normal file
Binary file not shown.
BIN
compiled/default/n
Normal file
BIN
compiled/default/n
Normal file
Binary file not shown.
BIN
compiled/default/resolve.cdb
Normal file
BIN
compiled/default/resolve.cdb
Normal file
Binary file not shown.
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST
vendored
Normal file
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX
vendored
Symbolic link
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
S6_FDHOLDER_STORE_REGEX
|
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP
vendored
Normal file
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX
vendored
Normal file
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
^pipe:s6rc-
|
@@ -0,0 +1 @@
|
|||||||
|
1
|
16
compiled/default/servicedirs/s6rc-fdholder/run
Executable file
16
compiled/default/servicedirs/s6rc-fdholder/run
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
pipeline -dw --
|
||||||
|
{
|
||||||
|
if -n --
|
||||||
|
{
|
||||||
|
forstdin -x 1 -- i
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
if -nt --
|
||||||
|
{
|
||||||
|
s6-ipcclient -l0 -- s
|
||||||
|
/usr/libexec/s6-rc-fdholder-filler -1 --
|
||||||
|
}
|
||||||
|
s6-svc -t .
|
||||||
|
}
|
||||||
|
s6-fdholder-daemon -1 -i data/rules -- s
|
@@ -0,0 +1 @@
|
|||||||
|
3
|
8
compiled/default/servicedirs/s6rc-oneshot-runner/run
Executable file
8
compiled/default/servicedirs/s6rc-oneshot-runner/run
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
fdmove 1 3
|
||||||
|
s6-ipcserver-socketbinder -- s
|
||||||
|
s6-ipcserverd -1 --
|
||||||
|
s6-ipcserver-access -v0 -E -l0 -i data/rules --
|
||||||
|
s6-sudod -t 2000 --
|
||||||
|
/usr/libexec/s6-rc-oneshot-run -l ../.. --
|
1
rc-serv-build/udevd-udev/run → compiled/default/servicedirs/udevd-udev/run
Normal file → Executable file
1
rc-serv-build/udevd-udev/run → compiled/default/servicedirs/udevd-udev/run
Normal file → Executable file
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- udevd-udev started }
|
||||||
exec -c
|
exec -c
|
||||||
udevd
|
udevd
|
||||||
|
|
1
rc-serv-build/udevd-udevadm/run → compiled/default/servicedirs/udevd-udevadm/run
Normal file → Executable file
1
rc-serv-build/udevd-udevadm/run → compiled/default/servicedirs/udevd-udevadm/run
Normal file → Executable file
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- udevd-udevadm started }
|
||||||
s6-devd
|
s6-devd
|
||||||
/usr/bin/udevadm settle
|
/usr/bin/udevadm settle
|
1
compiled/previous
Symbolic link
1
compiled/previous
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6/compiled/default
|
4
init
4
init
@@ -58,7 +58,6 @@ if {
|
|||||||
import -i svc-serv
|
import -i svc-serv
|
||||||
foreground {
|
foreground {
|
||||||
if { cp -a ${svc-serv} /run/s6 }
|
if { cp -a ${svc-serv} /run/s6 }
|
||||||
cp -a /etc/s6/rc-serv /run/.rc-serv
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create symlink to /run/s6-run
|
# Create symlink to /run/s6-run
|
||||||
@@ -80,9 +79,10 @@ background {
|
|||||||
s6-setsid --
|
s6-setsid --
|
||||||
redirfd -w 1 /run/s6-run/service/s6-svscan-log/fifo
|
redirfd -w 1 /run/s6-run/service/s6-svscan-log/fifo
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
/etc/stage2
|
/etc/s6/stage2
|
||||||
}
|
}
|
||||||
|
|
||||||
unexport !
|
unexport !
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
s6-envdir -I /run/s6-run/service/.s6-svscan/
|
||||||
s6-svscan -st0 /run/s6-run/service
|
s6-svscan -st0 /run/s6-run/service
|
||||||
|
2
poweroff
2
poweroff
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
exec /run/s6-run/service/.s6-svscan/SIGUSR1
|
exec /run/s6-run/service/.s6-svscan/SIGUSR2
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- 00 started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
# mount proc sys dev run if doesn't exist
|
# mount proc sys dev run if doesn't exist
|
||||||
#import -i HOSTNAME
|
#import -i HOSTNAME
|
||||||
@@ -30,9 +31,10 @@ if {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# finaly mount /dev/shm /dev/pts
|
# finaly mount /dev/shm /dev/pts
|
||||||
forx -p third { shm pts }
|
|
||||||
import -ui third
|
|
||||||
if {
|
if {
|
||||||
|
forx -p third { shm pts }
|
||||||
|
import -ui third
|
||||||
|
if {
|
||||||
foreground {
|
foreground {
|
||||||
if -n { mountpoint -q /dev/$third }
|
if -n { mountpoint -q /dev/$third }
|
||||||
if { s6-mkdir -p -m 0755 /dev/$third }
|
if { s6-mkdir -p -m 0755 /dev/$third }
|
||||||
@@ -43,4 +45,6 @@ if {
|
|||||||
import -ui options
|
import -ui options
|
||||||
s6-mount -o $options -n -t $fstype $device $mountpoint
|
s6-mount -o $options -n -t $fstype $device $mountpoint
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
s6-echo -- 00 successfully started
|
@@ -7,6 +7,5 @@ rofs-Udevd
|
|||||||
rofs-Checkfs
|
rofs-Checkfs
|
||||||
rofs-modules
|
rofs-modules
|
||||||
rofs-swap
|
rofs-swap
|
||||||
rofs-loopback
|
|
||||||
rofs-kernruntime
|
rofs-kernruntime
|
||||||
|
|
@@ -1,6 +1,9 @@
|
|||||||
rwfs-fsrw
|
rwfs-fsrw
|
||||||
|
rwfs-loopback
|
||||||
|
rwfs-iptables
|
||||||
rwfs-nonetwork
|
rwfs-nonetwork
|
||||||
rwfs-localtime
|
rwfs-localtime
|
||||||
rwfs-random
|
rwfs-random
|
||||||
rwfs-cleanboot
|
rwfs-cleanboot
|
||||||
|
rwfs-end
|
||||||
rwfs-dmesglog
|
rwfs-dmesglog
|
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- checkfs-brtfs started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" USEBTRFS
|
import -D "" USEBTRFS
|
||||||
foreground {
|
foreground {
|
||||||
@@ -8,4 +9,4 @@ foreground {
|
|||||||
if { s6-test -x /usr/bin/btrfs }
|
if { s6-test -x /usr/bin/btrfs }
|
||||||
btrfs device scan
|
btrfs device scan
|
||||||
}
|
}
|
||||||
true
|
s6-echo -- checkfs-brtfs successfully started
|
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- checkfs-dmraid started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" USEDMRAID
|
import -D "" USEDMRAID
|
||||||
foreground {
|
foreground {
|
||||||
@@ -8,4 +9,4 @@ foreground {
|
|||||||
if { s6-test -x /usr/bin/dmraid }
|
if { s6-test -x /usr/bin/dmraid }
|
||||||
dmraid -i -ay
|
dmraid -i -ay
|
||||||
}
|
}
|
||||||
true
|
s6-echo -- checkfs-dmraid successfully started
|
21
rc-serv-boot/checkfs-fscheck/up
Normal file
21
rc-serv-boot/checkfs-fscheck/up
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- checkfs-fsckeck started }
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
import -D "" FORCECHCK
|
||||||
|
if -t {
|
||||||
|
if { s6-test $FORCECHCK = yes }
|
||||||
|
redirfd -w 1 /dev/console
|
||||||
|
if { s6-echo -- Check of filesystem was asked, please wait }
|
||||||
|
if { fsck -A -T -a -f noopts=_netdev }
|
||||||
|
if { s6-echo -- Filesystem checked }
|
||||||
|
redirfd -w 1 /run/s6/service/s6-svscan-log/fifo
|
||||||
|
s6-true
|
||||||
|
}
|
||||||
|
# if partition is checked, fsck return a fail exit
|
||||||
|
# and a crash occurs, so whatever happens with fsck, the output need to be a success
|
||||||
|
if -t {
|
||||||
|
fsck -A -T -a noopts=_netdev
|
||||||
|
}
|
||||||
|
wait { }
|
||||||
|
s6-echo -- checkfs-fscheck successfully started
|
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rofs-cgroups started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" CGROUPS
|
import -D "" CGROUPS
|
||||||
foreground {
|
foreground {
|
||||||
@@ -16,4 +17,4 @@ foreground {
|
|||||||
if { s6-mkdir /sys/fs/cgroup/${i} }
|
if { s6-mkdir /sys/fs/cgroup/${i} }
|
||||||
s6-mount -t cgroup -o ${i} -- cgroup /sys/fs/cgroup/${i}
|
s6-mount -t cgroup -o ${i} -- cgroup /sys/fs/cgroup/${i}
|
||||||
}
|
}
|
||||||
true
|
s6-echo -- rofs-cgroups successfully started
|
@@ -1 +1,2 @@
|
|||||||
rofs-kernmod
|
rofs-kernmod
|
||||||
|
rofs-Udevd
|
19
rc-serv-boot/rofs-console/up
Normal file
19
rc-serv-boot/rofs-console/up
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rofs-console started }
|
||||||
|
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
import -D "" KEYMAP
|
||||||
|
import -D "" FONT
|
||||||
|
import -D "" FONT_MAP
|
||||||
|
import -D "" FONT_UNIMAP
|
||||||
|
foreground {
|
||||||
|
loadkeys -q -u $KEYMAP
|
||||||
|
}
|
||||||
|
foreground {
|
||||||
|
forx index { 0 1 2 3 4 5 6 7 8 9 10 }
|
||||||
|
import -u index
|
||||||
|
setfont -m $FONT_MAP -u $FONT_UNIMAP $FONT -C /dev/tty${index}
|
||||||
|
}
|
||||||
|
s6-echo -- rofs-console successfully started
|
15
rc-serv-boot/rofs-hardclock/up
Normal file
15
rc-serv-boot/rofs-hardclock/up
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rofs-hardclock started }
|
||||||
|
foreground {
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
import -D "" TZ
|
||||||
|
import -D "" HARDWARECLOCK
|
||||||
|
pipeline -d { echo $HARDWARECLOCK }
|
||||||
|
pipeline { tr A-Z a-z }
|
||||||
|
forstdin -- clock
|
||||||
|
import -iu clock
|
||||||
|
hwclock --systz --${clock} --noadjfile
|
||||||
|
}
|
||||||
|
s6-echo -- rofs-hardclock successfully started
|
14
rc-serv-boot/rofs-kernmod/up
Normal file
14
rc-serv-boot/rofs-kernmod/up
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rofs-kermod started }
|
||||||
|
foreground {
|
||||||
|
pipeline -d { kmod static-nodes }
|
||||||
|
pipeline { s6-grep -F -- Module: }
|
||||||
|
pipeline { s6-cut -d":" -f2 }
|
||||||
|
pipeline { s6-cut -d" " -f2 }
|
||||||
|
forstdin -d"\n" -- mod
|
||||||
|
import -iu mod
|
||||||
|
modprobe $mod
|
||||||
|
}
|
||||||
|
s6-echo -- rofs-kermod successfully started
|
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/execlineb -P
|
#!/usr/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rofs-kernruntime started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" KERNELRUNTIME
|
import -D "" KERNELRUNTIME
|
||||||
foreground {
|
foreground {
|
||||||
@@ -9,4 +10,4 @@ foreground {
|
|||||||
if { s6-test -e /etc/sysctl.conf }
|
if { s6-test -e /etc/sysctl.conf }
|
||||||
sysctl -p /etc/sysctl.conf
|
sysctl -p /etc/sysctl.conf
|
||||||
}
|
}
|
||||||
true
|
s6-echo -- rofs-kernruntime successfully started
|
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rofs-modules started }
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test -e /etc/s6/env/s6-conf/MODULES }
|
if { s6-test -e /etc/s6/env/s6-conf/MODULES }
|
||||||
redirfd -r 0 /etc/s6/env/s6-conf/MODULES
|
redirfd -r 0 /etc/s6/env/s6-conf/MODULES
|
||||||
@@ -11,4 +12,4 @@ foreground {
|
|||||||
modprobe -ab $mods
|
modprobe -ab $mods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
true
|
s6-echo -- rofs-modules successfully started
|
@@ -1,10 +1,11 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rofs-swap started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" USESWAP
|
import -D "" USESWAP
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $USESWAP = yes }
|
if { s6-test $USESWAP = yes }
|
||||||
swapon -a
|
swapon -a
|
||||||
}
|
}
|
||||||
true
|
s6-echo -- rofs-swap successfully started
|
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-cleanboot started }
|
||||||
if -t { install -m0664 -o root -g utmp /dev/null /run/utmp }
|
if -t { install -m0664 -o root -g utmp /dev/null /run/utmp }
|
||||||
|
|
||||||
if -nt { s6-test -e /var/log/wtmp }
|
if -nt { s6-test -e /var/log/wtmp }
|
||||||
@@ -8,4 +9,5 @@ if -t { install -m0664 -o root -g utmp /dev/null /var/log/wtmp }
|
|||||||
|
|
||||||
if -nt { s6-test -e /var/log/btmp }
|
if -nt { s6-test -e /var/log/btmp }
|
||||||
if -t { install -m0600 -o root -g utmp /dev/null /var/log/btmp }
|
if -t { install -m0600 -o root -g utmp /dev/null /var/log/btmp }
|
||||||
install -dm1777 /tmp/.X11-unix /tmp/.ICE-unix
|
if -t { install -dm1777 /tmp/.X11-unix /tmp/.ICE-unix }
|
||||||
|
s6-echo -- rwfs-cleanboot successfully started
|
1
rc-serv-boot/rwfs-dmesglog/dependencies
Normal file
1
rc-serv-boot/rwfs-dmesglog/dependencies
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rwfs-end
|
8
rc-serv-boot/rwfs-dmesglog/up
Normal file
8
rc-serv-boot/rwfs-dmesglog/up
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-dmesglog started }
|
||||||
|
foreground {
|
||||||
|
redirfd -w 1 /var/log/dmesg.log
|
||||||
|
dmesg
|
||||||
|
}
|
||||||
|
s6-echo -- rwfs-dmesglog successfully started
|
7
rc-serv-boot/rwfs-end/dependencies
Normal file
7
rc-serv-boot/rwfs-end/dependencies
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
rwfs-fsrw
|
||||||
|
rwfs-loopback
|
||||||
|
rwfs-iptables
|
||||||
|
rwfs-nonetwork
|
||||||
|
rwfs-localtime
|
||||||
|
rwfs-random
|
||||||
|
rwfs-cleanboot
|
0
rc-serv-boot/rwfs-end/up
Normal file
0
rc-serv-boot/rwfs-end/up
Normal file
1
rc-serv-boot/rwfs-fsrw/type
Normal file
1
rc-serv-boot/rwfs-fsrw/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
5
rc-serv-boot/rwfs-fsrw/up
Normal file
5
rc-serv-boot/rwfs-fsrw/up
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-fsrw started }
|
||||||
|
if { s6-mount -o remount,rw / / }
|
||||||
|
s6-echo -- rwfs-fsrw successfully started
|
2
rc-serv-boot/rwfs-iptables/dependencies
Normal file
2
rc-serv-boot/rwfs-iptables/dependencies
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
rwfs-fsrw
|
||||||
|
rwfs-loopback
|
17
rc-serv-boot/rwfs-iptables/down
Normal file
17
rc-serv-boot/rwfs-iptables/down
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
import -D "" IPTABLES
|
||||||
|
import -D "" IP6TABLES
|
||||||
|
foreground {
|
||||||
|
if { s6-test $IPTABLES = yes }
|
||||||
|
if { s6-echo -- Flushing iptables }
|
||||||
|
/usr/lib/iptables/scripts/iptables-flush
|
||||||
|
|
||||||
|
}
|
||||||
|
foreground {
|
||||||
|
if { s6-test $IP6TABLES = yes }
|
||||||
|
if { s6-echo -- Flushing ip6tables }
|
||||||
|
/usr/lib/iptables/scripts/iptables-flush 6
|
||||||
|
}
|
||||||
|
s6-true
|
22
rc-serv-boot/rwfs-iptables/up
Normal file
22
rc-serv-boot/rwfs-iptables/up
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-iptables started }
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
import -D "" IPTABLES
|
||||||
|
import -D "" IP6TABLES
|
||||||
|
foreground {
|
||||||
|
if { s6-test $IPTABLES = yes }
|
||||||
|
if { s6-test -e /etc/iptables/iptables.rules }
|
||||||
|
if { s6-echo -- Activing iptables }
|
||||||
|
if { iptables-restore /etc/iptables/iptables.rules }
|
||||||
|
s6-echo -- Iptables actived
|
||||||
|
}
|
||||||
|
foreground {
|
||||||
|
if { s6-test $IP6TABLES = yes }
|
||||||
|
if { s6-test -e /etc/iptables/ip6tables.rules }
|
||||||
|
if { s6-echo -- Activing ip6tables }
|
||||||
|
ip6tables-restore /etc/iptables/ip6tables.rules
|
||||||
|
s6-echo -- Ip6tables actived
|
||||||
|
}
|
||||||
|
s6-echo -- rwfs-iptables successfully started
|
8
rc-serv-boot/rwfs-localtime/up
Normal file
8
rc-serv-boot/rwfs-localtime/up
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-localtime started }
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
import -D "" TZ
|
||||||
|
if { s6-ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime }
|
||||||
|
s6-echo -- rwfs-localtime successfully started
|
6
rc-serv-boot/rwfs-loopback/up
Normal file
6
rc-serv-boot/rwfs-loopback/up
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-loopback started }
|
||||||
|
if { ip link set up dev lo }
|
||||||
|
s6-echo -- rwfs-loopback successfully started
|
6
rc-serv-boot/rwfs-nonetwork/up
Normal file
6
rc-serv-boot/rwfs-nonetwork/up
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-nonetwork started }
|
||||||
|
if { mount -a -t "nosysfs,nonfs,nonfs4,nosmbfs,nocifs" -O no_netdev }
|
||||||
|
s6-echo -- rwfs-nonetwork successfully started
|
@@ -1 +1,2 @@
|
|||||||
rwfs-fsrw
|
rwfs-fsrw
|
||||||
|
|
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-random started }
|
||||||
foreground {
|
foreground {
|
||||||
cp /var/lib/random-seed /dev/urandom
|
cp /var/lib/random-seed /dev/urandom
|
||||||
}
|
}
|
||||||
@@ -20,4 +20,5 @@ if -t {
|
|||||||
|
|
||||||
umask 077
|
umask 077
|
||||||
redirfd -w 1 /dev/null
|
redirfd -w 1 /dev/null
|
||||||
dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$bytes
|
if { dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$bytes }
|
||||||
|
s6-echo -- rwfs-random successfully started
|
6
rc-serv-boot/udevd-udev/run
Normal file
6
rc-serv-boot/udevd-udev/run
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- udevd-udev started }
|
||||||
|
exec -c
|
||||||
|
udevd
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user