Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6dab7d1ff9 | ||
![]() |
aa34195b53 | ||
![]() |
15cb695a3e | ||
![]() |
9aa8671c09 | ||
![]() |
76e68327a6 | ||
![]() |
6f095a01e7 | ||
![]() |
b5162cd430 | ||
![]() |
95674ac04f | ||
![]() |
20c709697d | ||
![]() |
62e44763a1 | ||
![]() |
8b2f67c2bd | ||
![]() |
4db28f92ad | ||
![]() |
e994d4f8e0 | ||
![]() |
6679703194 | ||
![]() |
5a5798e699 | ||
![]() |
4c4aa196a3 | ||
![]() |
59103805ae | ||
![]() |
629e2a2693 | ||
![]() |
730c47503d | ||
![]() |
4a2ce7486b | ||
![]() |
4b516a60a3 | ||
![]() |
3ede7a7e1a | ||
![]() |
ecf880bbba | ||
![]() |
e078f81833 | ||
![]() |
2da29b1f89 | ||
![]() |
2229c16ccb | ||
![]() |
a973077e7c | ||
![]() |
c1462043c4 | ||
![]() |
8f488f90c2 | ||
![]() |
5b60188bd1 | ||
![]() |
6467aa9404 | ||
![]() |
ac5d797b7f | ||
![]() |
1360a70b56 | ||
![]() |
46e69c496d |
@@ -1,3 +1,4 @@
|
|||||||
# s6-boot
|
# s6-boot
|
||||||
Boot files for s6
|
Boot files for s6
|
||||||
UNDER DEVELOPMENT, DO NOT USE FOR PRODUCTION
|
For instructions about S6 supervision suite : http://skarnet.org/software/
|
||||||
|
Please see here http://obarun.org/forum/viewtopic.php?id=123 for futher informations about obarun use it.
|
||||||
|
10
_s6-svc
10
_s6-svc
@@ -1,17 +1,19 @@
|
|||||||
#compdef s6-svc
|
#compdef s6-svc
|
||||||
|
|
||||||
# completion for s6-svc
|
# completion for s6-svc
|
||||||
# Eric Vidal <eric@obarun.org>
|
# Copyright (C) 2015-2017 Eric Vidal <eric@obarun.org>
|
||||||
# services in /run/s6/service. Change the path variable to suit your needs.
|
# services in /run/s6/service. Change the path variable to suit your needs.
|
||||||
|
|
||||||
path_dir=/run/s6/service
|
path_dir_boot=/run/boot/service
|
||||||
|
path_dir_user=/run/user/service
|
||||||
|
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
_path() {
|
_path() {
|
||||||
local list_dir
|
local list_dir
|
||||||
list_dir=( $path_dir/* )
|
list_dir_boot=( $path_dir_boot/* )
|
||||||
compadd "$@" -a list_dir
|
list_dir_user=( $path_dir_user/* )
|
||||||
|
compadd "$@" -a list_dir_boot list_dir_user
|
||||||
}
|
}
|
||||||
|
|
||||||
_list_common=(
|
_list_common=(
|
||||||
|
@@ -7,14 +7,14 @@ s6-envdir /etc/s6/env/s6-conf
|
|||||||
#if { s6-hostname $HOSTNAME }
|
#if { s6-hostname $HOSTNAME }
|
||||||
foreground {
|
foreground {
|
||||||
forx -p first { proc sys dev run }
|
forx -p first { proc sys dev run }
|
||||||
import -ui first
|
importas -ui -D "" first first
|
||||||
foreground {
|
foreground {
|
||||||
if -n { mountpoint -q /$first }
|
if -n { mountpoint -q /$first }
|
||||||
s6-envdir /etc/s6/env/mount/$first
|
s6-envdir /etc/s6/env/mount/$first
|
||||||
import -ui fstype
|
importas -ui -D "" fstype fstype
|
||||||
import -ui device
|
importas -ui -D "" device device
|
||||||
import -ui mountpoint
|
importas -ui -D "" mountpoint mountpoint
|
||||||
import -ui options
|
importas -ui -D "" options options
|
||||||
s6-mount -o $options -t $fstype $device $mountpoint
|
s6-mount -o $options -t $fstype $device $mountpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ foreground {
|
|||||||
# create needed directory on run if doesn't exist
|
# create needed directory on run if doesn't exist
|
||||||
if {
|
if {
|
||||||
forx -p second { lvm user lock }
|
forx -p second { lvm user lock }
|
||||||
import -ui second
|
importas -ui -D "" second second
|
||||||
foreground {
|
foreground {
|
||||||
if -n { s6-test -d /run/$second }
|
if -n { s6-test -d /run/$second }
|
||||||
s6-mkdir -p -m 0755 /run/$second
|
s6-mkdir -p -m 0755 /run/$second
|
||||||
@@ -33,16 +33,16 @@ if {
|
|||||||
# finaly mount /dev/shm /dev/pts
|
# finaly mount /dev/shm /dev/pts
|
||||||
if {
|
if {
|
||||||
forx -p third { shm pts }
|
forx -p third { shm pts }
|
||||||
import -ui third
|
importas -ui -D "" third third
|
||||||
if {
|
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 }
|
||||||
s6-envdir /etc/s6/env/mount/$third
|
s6-envdir /etc/s6/env/mount/$third
|
||||||
import -ui fstype
|
importas -ui -D "" fstype fstype
|
||||||
import -ui device
|
importas -ui -D "" device device
|
||||||
import -ui mountpoint
|
importas -ui -D "" mountpoint mountpoint
|
||||||
import -ui options
|
importas -ui -D "" options options
|
||||||
s6-mount -o $options -n -t $fstype $device $mountpoint
|
s6-mount -o $options -n -t $fstype $device $mountpoint
|
||||||
}
|
}
|
||||||
}
|
}
|
3
boot-rc-serv/All/contents
Normal file
3
boot-rc-serv/All/contents
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
all-Boot
|
||||||
|
#all-User
|
||||||
|
all-Switch
|
3
boot-rc-serv/all-Switch/contents
Normal file
3
boot-rc-serv/all-Switch/contents
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
switch-ready
|
||||||
|
switch-svscan
|
||||||
|
switch-user
|
@@ -1,4 +1,5 @@
|
|||||||
rwfs-fsrw
|
rwfs-fsrw
|
||||||
|
rwfs-tmpdir
|
||||||
rwfs-loopback
|
rwfs-loopback
|
||||||
rwfs-iptables
|
rwfs-iptables
|
||||||
rwfs-nonetwork
|
rwfs-nonetwork
|
||||||
@@ -7,3 +8,4 @@ rwfs-random
|
|||||||
rwfs-cleanboot
|
rwfs-cleanboot
|
||||||
rwfs-end
|
rwfs-end
|
||||||
rwfs-dmesglog
|
rwfs-dmesglog
|
||||||
|
rwfs-s6local
|
@@ -3,7 +3,7 @@
|
|||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- checkfs-brtfs started }
|
if { s6-echo -- checkfs-brtfs started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" USEBTRFS
|
importas -D "" USEBTRFS USEBTRFS
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $USEBTRFS = yes }
|
if { s6-test $USEBTRFS = yes }
|
||||||
if { s6-test -x /usr/bin/btrfs }
|
if { s6-test -x /usr/bin/btrfs }
|
@@ -3,7 +3,7 @@
|
|||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- checkfs-dmraid started }
|
if { s6-echo -- checkfs-dmraid started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" USEDMRAID
|
importas -D "" USEDMRAID USEDMRAID
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $USEDMRAID = yes }
|
if { s6-test $USEDMRAID = yes }
|
||||||
if { s6-test -x /usr/bin/dmraid }
|
if { s6-test -x /usr/bin/dmraid }
|
@@ -1,3 +1,4 @@
|
|||||||
rofs-Udevd
|
rofs-Udevd
|
||||||
checkfs-dmraid
|
checkfs-dmraid
|
||||||
checkfs-btrfs
|
checkfs-btrfs
|
||||||
|
checkfs-lvm
|
@@ -2,20 +2,18 @@
|
|||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- checkfs-fsckeck started }
|
if { s6-echo -- checkfs-fsckeck started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" FORCECHCK
|
importas -D "" FORCECHCK FORCECHCK
|
||||||
if -t {
|
foreground {
|
||||||
if { s6-test $FORCECHCK = yes }
|
if { s6-test $FORCECHCK = yes }
|
||||||
redirfd -w 1 /dev/console
|
redirfd -w 1 /dev/console
|
||||||
if { s6-echo -- Check of filesystem was asked, please wait }
|
if { s6-echo -- Check of filesystem was asked, please wait }
|
||||||
if { fsck -A -T -a -f noopts=_netdev }
|
foreground { fsck -A -T -a -f noopts=_netdev }
|
||||||
if { s6-echo -- Filesystem checked }
|
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
|
# 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
|
# and a crash occurs, so whatever happens with fsck, the output need to be a success
|
||||||
if -t {
|
if -t {
|
||||||
fsck -A -T -a noopts=_netdev
|
foreground { fsck -A -T -a noopts=_netdev }
|
||||||
}
|
}
|
||||||
wait { }
|
|
||||||
s6-echo -- checkfs-fscheck successfully started
|
s6-echo -- checkfs-fscheck successfully started
|
1
boot-rc-serv/checkfs-lvm/dependencies
Normal file
1
boot-rc-serv/checkfs-lvm/dependencies
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rofs-Udevd
|
19
boot-rc-serv/checkfs-lvm/up
Normal file
19
boot-rc-serv/checkfs-lvm/up
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
importas -D "" USELVM USELVM
|
||||||
|
foreground {
|
||||||
|
if { s6-test $USELVM = yes }
|
||||||
|
if { s6-echo -- checkfs-lvm started }
|
||||||
|
foreground {
|
||||||
|
if -nt { s6-test -d /run/lvm }
|
||||||
|
s6-mkdir /run/lvm
|
||||||
|
}
|
||||||
|
if { /usr/bin/lvmetad -p /run/lvm/lvmetad.pid }
|
||||||
|
foreground {
|
||||||
|
if { /usr/bin/vgscan }
|
||||||
|
/usr/bin/vgchange -ay
|
||||||
|
}
|
||||||
|
pkill lvmetad
|
||||||
|
}
|
||||||
|
s6-echo -- lvm-prepare successfully started
|
@@ -1,3 +1,4 @@
|
|||||||
checkfs-dmraid
|
checkfs-dmraid
|
||||||
checkfs-btrfs
|
checkfs-btrfs
|
||||||
|
checkfs-lvm
|
||||||
checkfs-fscheck
|
checkfs-fscheck
|
@@ -7,7 +7,7 @@ foreground {
|
|||||||
pipeline { s6-cut -d"\t" -f1 }
|
pipeline { s6-cut -d"\t" -f1 }
|
||||||
pipeline { s6-grep -vF -- devices }
|
pipeline { s6-grep -vF -- devices }
|
||||||
forstdin -d"\n" -- i
|
forstdin -d"\n" -- i
|
||||||
import -u i
|
importas -u -D "" i i
|
||||||
if { mountpoint -q /sys/fs/cgroup/${i} }
|
if { mountpoint -q /sys/fs/cgroup/${i} }
|
||||||
umount -R /sys/fs/cgroup/${i}
|
umount -R /sys/fs/cgroup/${i}
|
||||||
}
|
}
|
@@ -3,7 +3,7 @@
|
|||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- rofs-cgroups started }
|
if { s6-echo -- rofs-cgroups started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" CGROUPS
|
importas -D "" CGROUPS CGROUPS
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $CGROUPS = yes }
|
if { s6-test $CGROUPS = yes }
|
||||||
if { mkdir -p -m 0755 /sys/fs/cgroup }
|
if { mkdir -p -m 0755 /sys/fs/cgroup }
|
||||||
@@ -13,7 +13,7 @@ foreground {
|
|||||||
pipeline { s6-cut -d"\t" -f1 }
|
pipeline { s6-cut -d"\t" -f1 }
|
||||||
pipeline { s6-grep -vF -- devices }
|
pipeline { s6-grep -vF -- devices }
|
||||||
forstdin -d"\n" -- i
|
forstdin -d"\n" -- i
|
||||||
import -u i
|
importas -u -D "" i i
|
||||||
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}
|
||||||
}
|
}
|
@@ -13,7 +13,7 @@ foreground {
|
|||||||
}
|
}
|
||||||
foreground {
|
foreground {
|
||||||
forx index { 0 1 2 3 4 5 6 7 8 9 10 }
|
forx index { 0 1 2 3 4 5 6 7 8 9 10 }
|
||||||
import -u index
|
importas -u -D "" index index
|
||||||
setfont -m $FONT_MAP -u $FONT_UNIMAP $FONT -C /dev/tty${index}
|
setfont -m $FONT_MAP -u $FONT_UNIMAP $FONT -C /dev/tty${index}
|
||||||
}
|
}
|
||||||
s6-echo -- rofs-console successfully started
|
s6-echo -- rofs-console successfully started
|
@@ -9,7 +9,7 @@ foreground {
|
|||||||
pipeline -d { echo $HARDWARECLOCK }
|
pipeline -d { echo $HARDWARECLOCK }
|
||||||
pipeline { tr A-Z a-z }
|
pipeline { tr A-Z a-z }
|
||||||
forstdin -- clock
|
forstdin -- clock
|
||||||
import -iu clock
|
importas -iu -D "" clock clock
|
||||||
hwclock --systz --${clock} --noadjfile
|
hwclock --systz --${clock} --noadjfile
|
||||||
}
|
}
|
||||||
s6-echo -- rofs-hardclock successfully started
|
s6-echo -- rofs-hardclock successfully started
|
@@ -8,7 +8,7 @@ foreground {
|
|||||||
pipeline { s6-cut -d":" -f2 }
|
pipeline { s6-cut -d":" -f2 }
|
||||||
pipeline { s6-cut -d" " -f2 }
|
pipeline { s6-cut -d" " -f2 }
|
||||||
forstdin -d"\n" -- mod
|
forstdin -d"\n" -- mod
|
||||||
import -iu mod
|
importas -iu -D "" mod mod
|
||||||
modprobe $mod
|
modprobe $mod
|
||||||
}
|
}
|
||||||
s6-echo -- rofs-kermod successfully started
|
s6-echo -- rofs-kermod successfully started
|
@@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- rofs-kernruntime started }
|
if { s6-echo -- rofs-kernruntime started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" KERNELRUNTIME
|
importas -D "" KERNELRUNTIME KERNELRUNTIME
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $KERNELRUNTIME = yes }
|
if { s6-test $KERNELRUNTIME = yes }
|
||||||
if { s6-test -x /usr/bin/sysctl }
|
if { s6-test -x /usr/bin/sysctl }
|
@@ -6,7 +6,7 @@ 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
|
||||||
forstdin -n -- mods
|
forstdin -n -- mods
|
||||||
import -ui mods
|
importas -ui -D "" mods mods
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test -n $mods }
|
if { s6-test -n $mods }
|
||||||
modprobe -ab $mods
|
modprobe -ab $mods
|
@@ -3,7 +3,7 @@
|
|||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- rofs-swap started }
|
if { s6-echo -- rofs-swap started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" USESWAP
|
importas -D "" USESWAP USESWAP
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $USESWAP = yes }
|
if { s6-test $USESWAP = yes }
|
||||||
swapon -a
|
swapon -a
|
2
boot-rc-serv/rwfs-cleanboot/dependencies
Normal file
2
boot-rc-serv/rwfs-cleanboot/dependencies
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
rwfs-fsrw
|
||||||
|
rwfs-tmpdir
|
19
boot-rc-serv/rwfs-cleanboot/up
Normal file
19
boot-rc-serv/rwfs-cleanboot/up
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-cleanboot started }
|
||||||
|
if -t {
|
||||||
|
foreground { install -m0664 -o root -g utmp /dev/null /run/utmp }
|
||||||
|
}
|
||||||
|
if -t {
|
||||||
|
if -nt { s6-test -e /var/log/wtmp }
|
||||||
|
foreground { install -m0664 -o root -g utmp /dev/null /var/log/wtmp }
|
||||||
|
}
|
||||||
|
if -t {
|
||||||
|
if -nt { s6-test -e /var/log/btmp }
|
||||||
|
foreground { install -m0600 -o root -g utmp /dev/null /var/log/btmp }
|
||||||
|
}
|
||||||
|
if -t {
|
||||||
|
foreground { install -dm1777 /tmp/.X11-unix /tmp/.ICE-unix }
|
||||||
|
}
|
||||||
|
s6-echo -- rwfs-cleanboot successfully started
|
@@ -14,4 +14,4 @@ foreground {
|
|||||||
if { s6-echo -- Flushing ip6tables }
|
if { s6-echo -- Flushing ip6tables }
|
||||||
/usr/lib/iptables/scripts/iptables-flush 6
|
/usr/lib/iptables/scripts/iptables-flush 6
|
||||||
}
|
}
|
||||||
s6-true
|
s6-echo -- Iptables flushed
|
@@ -3,20 +3,20 @@
|
|||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- rwfs-iptables started }
|
if { s6-echo -- rwfs-iptables started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" IPTABLES
|
importas -D "" IPTABLES IPTABLES
|
||||||
import -D "" IP6TABLES
|
importas -D "" IP6TABLES IP6TABLES
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $IPTABLES = yes }
|
if { s6-test $IPTABLES = yes }
|
||||||
if { s6-test -e /etc/iptables/iptables.rules }
|
if { s6-test -e /etc/iptables/iptables.rules }
|
||||||
if { s6-echo -- Activing iptables }
|
if { s6-echo -- Activing iptables }
|
||||||
if { iptables-restore /etc/iptables/iptables.rules }
|
foreground { iptables-restore /etc/iptables/iptables.rules }
|
||||||
s6-echo -- Iptables actived
|
s6-echo -- Iptables actived
|
||||||
}
|
}
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test $IP6TABLES = yes }
|
if { s6-test $IP6TABLES = yes }
|
||||||
if { s6-test -e /etc/iptables/ip6tables.rules }
|
if { s6-test -e /etc/iptables/ip6tables.rules }
|
||||||
if { s6-echo -- Activing ip6tables }
|
if { s6-echo -- Activing ip6tables }
|
||||||
ip6tables-restore /etc/iptables/ip6tables.rules
|
foreground { ip6tables-restore /etc/iptables/ip6tables.rules }
|
||||||
s6-echo -- Ip6tables actived
|
s6-echo -- Ip6tables actived
|
||||||
}
|
}
|
||||||
s6-echo -- rwfs-iptables successfully started
|
s6-echo -- rwfs-iptables successfully started
|
@@ -3,6 +3,6 @@
|
|||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- rwfs-localtime started }
|
if { s6-echo -- rwfs-localtime started }
|
||||||
s6-envdir /etc/s6/env/s6-conf
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
import -D "" TZ
|
importas -D "" TZ TZ
|
||||||
if { s6-ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime }
|
if { s6-ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime }
|
||||||
s6-echo -- rwfs-localtime successfully started
|
s6-echo -- rwfs-localtime successfully started
|
2
boot-rc-serv/rwfs-loopback/dependencies
Normal file
2
boot-rc-serv/rwfs-loopback/dependencies
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
rwfs-fsrw
|
||||||
|
rwfs-iptables
|
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/execlineb -P
|
#!/usr/local/bin/execlineb -P
|
||||||
|
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
if { s6-echo -- rwfs-nonetwork started }
|
if { s6-echo -- rwfs-nonetwork started }
|
@@ -7,7 +7,7 @@ foreground {
|
|||||||
}
|
}
|
||||||
|
|
||||||
backtick -n bytes { cat /proc/sys/kernel/random/poolsize }
|
backtick -n bytes { cat /proc/sys/kernel/random/poolsize }
|
||||||
import -u bytes
|
importas -u -D "" bytes bytes
|
||||||
if -t {
|
if -t {
|
||||||
foreground {
|
foreground {
|
||||||
if { s6-test -z $bytes }
|
if { s6-test -z $bytes }
|
||||||
@@ -15,10 +15,8 @@ if -t {
|
|||||||
umask 077
|
umask 077
|
||||||
dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$defbytes
|
dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$defbytes
|
||||||
}
|
}
|
||||||
true
|
s6-true
|
||||||
}
|
}
|
||||||
|
|
||||||
umask 077
|
umask 077
|
||||||
redirfd -w 1 /dev/null
|
foreground { 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
|
s6-echo -- rwfs-random successfully started
|
1
boot-rc-serv/rwfs-s6local/dependencies
Normal file
1
boot-rc-serv/rwfs-s6local/dependencies
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rwfs-dmesglog
|
1
boot-rc-serv/rwfs-s6local/type
Normal file
1
boot-rc-serv/rwfs-s6local/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
7
boot-rc-serv/rwfs-s6local/up
Normal file
7
boot-rc-serv/rwfs-s6local/up
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
s6-envdir /etc/s6/env/s6-conf
|
||||||
|
importas -D "" S6LOCAL S6LOCAL
|
||||||
|
ifelse -X { s6-test $S6LOCAL = yes }
|
||||||
|
{ exec -c /etc/s6/data/scripts/s6.local }
|
||||||
|
s6-echo -- s6.local desactived
|
1
boot-rc-serv/rwfs-tmpdir/type
Normal file
1
boot-rc-serv/rwfs-tmpdir/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
10
boot-rc-serv/rwfs-tmpdir/up
Normal file
10
boot-rc-serv/rwfs-tmpdir/up
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- rwfs-tmpdir started }
|
||||||
|
|
||||||
|
foreground {
|
||||||
|
if { s6-echo -- Create /tmp directory }
|
||||||
|
mkdir -p -m1777 /tmp
|
||||||
|
}
|
||||||
|
|
||||||
|
s6-echo -- rwfs-tmpdir successfully started
|
1
boot-rc-serv/switch-ready/dependencies
Normal file
1
boot-rc-serv/switch-ready/dependencies
Normal file
@@ -0,0 +1 @@
|
|||||||
|
all-Boot
|
7
boot-rc-serv/switch-ready/up
Normal file
7
boot-rc-serv/switch-ready/up
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- start switch-presvscan }
|
||||||
|
if { s6-mkdir -p -m 0755 /run/user/service }
|
||||||
|
forbacktickx -p -0 serv { s6-ls -0 /etc/s6-serv/enabled/classic }
|
||||||
|
importas -u -D "" serv serv
|
||||||
|
s6-ln -s -- /etc/s6-serv/enabled/classic/${serv} /run/user/service
|
1
boot-rc-serv/switch-svscan/dependencies
Normal file
1
boot-rc-serv/switch-svscan/dependencies
Normal file
@@ -0,0 +1 @@
|
|||||||
|
switch-ready
|
3
boot-rc-serv/switch-svscan/run
Normal file
3
boot-rc-serv/switch-svscan/run
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
s6-svscan -t0 /run/user/service
|
2
boot-rc-serv/switch-user/dependencies
Normal file
2
boot-rc-serv/switch-user/dependencies
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
switch-ready
|
||||||
|
switch-svscan
|
2
boot-rc-serv/switch-user/down
Normal file
2
boot-rc-serv/switch-user/down
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
s6-rc -l /run/user-rc -da change
|
1
boot-rc-serv/switch-user/type
Normal file
1
boot-rc-serv/switch-user/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
6
boot-rc-serv/switch-user/up
Normal file
6
boot-rc-serv/switch-user/up
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/local/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
if { s6-echo -- switch-user started }
|
||||||
|
if { s6-rc-init -c /etc/s6-serv/enabled/rc/compiled/current -l /run/user-rc /run/user/service }
|
||||||
|
if { s6-rc -l /run/user-rc -u change All }
|
||||||
|
s6-echo -- switch-user successfully started
|
@@ -1,6 +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 }
|
if { s6-echo -- udevd-udev longrun started }
|
||||||
exec -c
|
exec -c
|
||||||
udevd
|
udevd
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user