Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6dab7d1ff9 | ||
![]() |
aa34195b53 |
2
_s6-svc
2
_s6-svc
@@ -1,7 +1,7 @@
|
||||
#compdef 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.
|
||||
|
||||
path_dir_boot=/run/boot/service
|
||||
|
@@ -1,3 +1,4 @@
|
||||
rofs-Udevd
|
||||
checkfs-dmraid
|
||||
checkfs-btrfs
|
||||
checkfs-lvm
|
1
boot-rc-serv/checkfs-lvm/dependencies
Normal file
1
boot-rc-serv/checkfs-lvm/dependencies
Normal file
@@ -0,0 +1 @@
|
||||
rofs-Udevd
|
1
boot-rc-serv/checkfs-lvm/type
Normal file
1
boot-rc-serv/checkfs-lvm/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
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-btrfs
|
||||
checkfs-lvm
|
||||
checkfs-fscheck
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
if { s6-echo -- udevd-udev started }
|
||||
if { s6-echo -- udevd-udev longrun started }
|
||||
exec -c
|
||||
udevd
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
if { s6-echo -- udevd-udev started }
|
||||
if { s6-echo -- udevd-udev longrun started }
|
||||
exec -c
|
||||
udevd
|
||||
|
||||
|
2
init
2
init
@@ -1,5 +1,5 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
# Copyright (C) 2015-2016 Eric Vidal <eric@obarun.org>
|
||||
# Copyright (C) 2015-2017 Eric Vidal <eric@obarun.org>
|
||||
#
|
||||
# This file is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
|
@@ -1 +1 @@
|
||||
erase me
|
||||
delete this file
|
||||
|
@@ -1 +1 @@
|
||||
erase me
|
||||
delete this file
|
||||
|
@@ -1 +1 @@
|
||||
erase me
|
||||
delete this file
|
||||
|
10
s6.conf
10
s6.conf
@@ -4,15 +4,15 @@
|
||||
# Apply kernel runtime [yes|no]
|
||||
KERNELRUNTIME=yes
|
||||
|
||||
#boot with dmraid support [yes|no]
|
||||
# Boot with dmraid support [yes|no]
|
||||
USEDMRAID=no
|
||||
|
||||
#boot with btrfs support [yes|no]
|
||||
# Boot with btrfs support [yes|no]
|
||||
USEBTRFS=no
|
||||
|
||||
#boot with lvm support [yes|no]
|
||||
# This option is not available for the moment
|
||||
#USELVM=no
|
||||
# Boot with lvm support [yes|no]
|
||||
# Do not forget to remake your initramfs with lvm2 hook on it
|
||||
USELVM=no
|
||||
|
||||
#swap support [yes|no]
|
||||
USESWAP=no
|
||||
|
2
stage2
2
stage2
@@ -1,5 +1,5 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
# Copyright (C) 2015-2016 Eric Vidal <eric@obarun.org>
|
||||
# Copyright (C) 2015-2017 Eric Vidal <eric@obarun.org>
|
||||
#
|
||||
# This file is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#!/usr/local/bin/execlineb -S0
|
||||
# Copyright (C) 2015-2016 Eric Vidal <eric@obarun.org>
|
||||
# Copyright (C) 2015-2017 Eric Vidal <eric@obarun.org>
|
||||
#
|
||||
# This file is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
|
3
stage3
3
stage3
@@ -1,5 +1,5 @@
|
||||
#!/usr/local/bin/execlineb -S0
|
||||
# Copyright (C) 2015-2016 Eric Vidal <eric@obarun.org>
|
||||
# Copyright (C) 2015-2017 Eric Vidal <eric@obarun.org>
|
||||
#
|
||||
# This file is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
@@ -36,7 +36,6 @@ foreground { s6-echo Syncing disks. }
|
||||
foreground { s6-sync }
|
||||
foreground { s6-echo -- Umount extra filesystem }
|
||||
foreground { umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs }
|
||||
foreground { rm -rf /tmp/* }
|
||||
foreground { s6-echo -- Remount ro / }
|
||||
foreground { mount -o remount,ro / }
|
||||
|
||||
|
Reference in New Issue
Block a user