Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8a2027df08 | ||
![]() |
d2a83294e0 | ||
![]() |
a221f2dd22 | ||
![]() |
905d8f07b2 | ||
![]() |
244c0a4203 | ||
![]() |
fa04d943a6 | ||
![]() |
1758a4fe48 | ||
![]() |
22bfa5e1a5 | ||
![]() |
49d7bc3436 | ||
![]() |
615bfc18a4 | ||
![]() |
0895fd81ac | ||
![]() |
c56a5527ea | ||
![]() |
fad5c2878f |
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.
0
compiled/default/lock
Normal file
0
compiled/default/lock
Normal file
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_GETDUMP
vendored
Normal file
1
compiled/default/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP
vendored
Normal file
@@ -0,0 +1 @@
|
||||
|
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 ../.. --
|
5
compiled/default/servicedirs/udevd-udev/run
Executable file
5
compiled/default/servicedirs/udevd-udev/run
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
exec -c
|
||||
udevd
|
||||
|
4
compiled/default/servicedirs/udevd-udevadm/run
Executable file
4
compiled/default/servicedirs/udevd-udevadm/run
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
#fdmove -c 2 1
|
||||
s6-devd
|
||||
/usr/bin/udevadm settle
|
1
compiled/previous
Symbolic link
1
compiled/previous
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/s6/compiled/default
|
3
init
3
init
@@ -58,7 +58,6 @@ if {
|
||||
import -i svc-serv
|
||||
foreground {
|
||||
if { cp -a ${svc-serv} /run/s6 }
|
||||
cp -a /etc/s6/.rc-serv /run/
|
||||
}
|
||||
|
||||
# Create symlink to /run/s6-run
|
||||
@@ -80,7 +79,7 @@ background {
|
||||
s6-setsid --
|
||||
redirfd -w 1 /run/s6-run/service/s6-svscan-log/fifo
|
||||
fdmove -c 2 1
|
||||
/etc/stage2
|
||||
/etc/s6/stage2
|
||||
}
|
||||
|
||||
unexport !
|
||||
|
@@ -7,6 +7,5 @@ rofs-Udevd
|
||||
rofs-Checkfs
|
||||
rofs-modules
|
||||
rofs-swap
|
||||
rofs-loopback
|
||||
rofs-kernruntime
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
rwfs-fsrw
|
||||
rwfs-loopback
|
||||
rwfs-nonetwork
|
||||
rwfs-localtime
|
||||
rwfs-random
|
||||
|
@@ -1,3 +1,8 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
fsck -A -T -a
|
||||
# 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
|
||||
}
|
||||
s6-true
|
||||
|
@@ -1 +1 @@
|
||||
|
||||
00
|
||||
|
@@ -1 +1,2 @@
|
||||
00
|
||||
rofs-Udevd
|
||||
|
2
rc-serv-boot/rwfs-loopback/dependencies
Normal file
2
rc-serv-boot/rwfs-loopback/dependencies
Normal file
@@ -0,0 +1,2 @@
|
||||
rwfs-fsrw
|
||||
|
1
rc-serv-boot/rwfs-loopback/type
Normal file
1
rc-serv-boot/rwfs-loopback/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
4
rc-serv-boot/rwfs-loopback/up
Normal file
4
rc-serv-boot/rwfs-loopback/up
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
fdmove -c 2 1
|
||||
ip link set up dev lo
|
@@ -1 +0,0 @@
|
||||
udevd-pipe
|
@@ -1 +0,0 @@
|
||||
udevd-udevdlog
|
@@ -1 +0,0 @@
|
||||
udevadm-pipe
|
@@ -1 +0,0 @@
|
||||
udevd-udevadmlog
|
@@ -1 +0,0 @@
|
||||
/etc/s6-serv/available/all-User
|
3
s6-serv/enabled/default/all-User/contents
Normal file
3
s6-serv/enabled/default/all-User/contents
Normal file
@@ -0,0 +1,3 @@
|
||||
# NEVER ERASE this services below if you do not know what you are doing.
|
||||
boot-ready
|
||||
# Enter the desire services/bundle names below this lines.
|
1
s6-serv/enabled/default/all-User/type
Normal file
1
s6-serv/enabled/default/all-User/type
Normal file
@@ -0,0 +1 @@
|
||||
bundle
|
28
shutdown
Executable file
28
shutdown
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
usage() {
|
||||
cat << EOF
|
||||
Usage: shutdown [OPTION]
|
||||
-r, --reboot Reboot
|
||||
-p, --poweroff Poweroff
|
||||
EOF
|
||||
exit 0
|
||||
}
|
||||
|
||||
signal="${1}"
|
||||
if [ -z $signal ]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
case "${signal}" in
|
||||
-p|-P|--poweroff|-H|-h|--halt)
|
||||
signal=SIGUSR2
|
||||
;;
|
||||
-r|--reboot)
|
||||
signal=SIGINT
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
esac
|
||||
|
||||
exec /run/s6-run/service/.s6-svscan/"${signal}"
|
2
stage2
2
stage2
@@ -18,7 +18,7 @@ if -nt {
|
||||
if { s6-echo -- "** Start Stage 2 **" }
|
||||
if { s6-echo -- "***************************************************************************" }
|
||||
# start service
|
||||
if { s6-rc-init -c /run/.rc-serv /run/s6-run/service }
|
||||
if { s6-rc-init -c /etc/s6/compiled/current /run/s6-run/service }
|
||||
if { s6-rc -u change All }
|
||||
if { s6-echo -- "***************************************************************************" }
|
||||
if { s6-echo -- "** Stage 2 completed **" }
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
foreground { /etc/stage2.tini }
|
||||
foreground { /etc/s6/stage2.tini }
|
||||
s6-svscanctl -h -- /run/s6-run/service
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
foreground { /etc/stage2.tini }
|
||||
foreground { /etc/s6/stage2.tini }
|
||||
s6-svscanctl -6 -- /run/s6-run/service
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
foreground { /etc/stage2.tini }
|
||||
foreground { /etc/s6/stage2.tini }
|
||||
s6-svscanctl -q -- /run/s6-run/service
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
foreground { /etc/stage2.tini }
|
||||
foreground { /etc/s6/stage2.tini }
|
||||
s6-svscanctl -t -- /run/s6-run/service
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
foreground { /etc/stage2.tini }
|
||||
foreground { /etc/s6/stage2.tini }
|
||||
s6-svscanctl -7 -- /run/s6-run/service
|
||||
|
@@ -6,4 +6,4 @@ fdmove -c 1 2
|
||||
foreground { s6-svc -X -- /run/s6-run/service/s6-svscan-log }
|
||||
unexport ?
|
||||
wait -r -- { }
|
||||
/etc/stage3 ${@}
|
||||
/etc/s6/stage3 ${@}
|
||||
|
Reference in New Issue
Block a user