2 Commits

Author SHA1 Message Date
cb89d5b167 Add btrfs support 2019-01-10 11:14:17 +07:00
6cc8c4288f Check if udev is already run in stage2 by runit 2018-12-27 20:48:25 +07:00
2 changed files with 14 additions and 4 deletions

View File

@@ -69,6 +69,11 @@ kill_all(){
case "$1" in
start)
if [[ -x "/bin/btrfs" ]]; then
stat_busy "Activating btrfs devices"
btrfs device scan
stat_done
fi
stat_busy "Checking filesystems"
do_fsck
add_daemon misc

View File

@@ -5,10 +5,15 @@
case "$1" in
start)
# check if runit already runs udevd
if ! pgrep -f "runsv udevd" >/dev/null 2>&1; then
stat_busy "Starting udev daemon"
udevd --daemon || stat_die udev
# Note: This is only needed for initialization, udev will
# be controlled by runit on stage 2.
add_daemon udev
stat_done udev
fi
;;
stop)
stat_busy "Stopping udev"