Compare commits

...

1 Commits

Author SHA1 Message Date
da655949da iso: add initial support for finit 2021-05-07 20:42:45 +07:00
2 changed files with 15 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ write_services_66_conf(){
write_services_conf 'svDir' '/etc/66/service' 'runsvDir' '/var/lib/66/system' > "$conf"
}
write_services_finit_conf(){
local conf="$1"/services-finit.conf
write_service_conf 'svDir' '/etc/finit.d/available' 'runsvDir' '/etc/finit.d/enabled' > "$conf"
}
write_postcfg(){
local yaml
yaml=$(write_yaml_header)

View File

@@ -54,4 +54,14 @@ add_svc_66(){
done
}
add_sv_finit(){
local mnt="$1" names="$2"
for svc in $names; do
if [[ -f "$mnt"/etc/finit/available/"$svc" ]]; then
msg2 "Setting %s: [%s]" "${INITSYS}" "$svc"
chroot "$mnt" initctl enable "$svc"
fi
done
}
#}}}