2 Commits

Author SHA1 Message Date
obarun
6dab7d1ff9 add lvm features 2017-03-22 19:01:59 +04:00
obarun
aa34195b53 remove rm -rf /tmp 2016-12-12 12:28:14 +04:00
19 changed files with 38 additions and 16 deletions

View File

@@ -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

View File

@@ -1,3 +1,4 @@
rofs-Udevd
checkfs-dmraid
checkfs-btrfs
checkfs-lvm

View File

@@ -0,0 +1 @@
rofs-Udevd

View File

@@ -0,0 +1 @@
oneshot

View 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

View File

@@ -1,3 +1,4 @@
checkfs-dmraid
checkfs-btrfs
checkfs-lvm
checkfs-fscheck

View File

@@ -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.

View File

@@ -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
View File

@@ -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

View File

@@ -1 +1 @@
erase me
delete this file

View File

@@ -1 +1 @@
erase me
delete this file

View File

@@ -1 +1 @@
erase me
delete this file

10
s6.conf
View File

@@ -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
View File

@@ -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

View File

@@ -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
View File

@@ -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 / }