correr openrc paralelo

This commit is contained in:
Cat /dev/Nulo 2023-05-22 12:17:04 -03:00
parent 1a9b64d503
commit 9a457d3258
2 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,6 +1,5 @@
rootfs.ext4
rootfs.qcow2
fireactions
*.ext4
vmlinux.bin
vmlinux.bin

View file

@ -10,6 +10,9 @@ echo https://dl-cdn.alpinelinux.org/alpine/v3.18/community >> /rootfs/etc/apk/re
apk add --initdb --root /rootfs alpine-base dropbear util-linux dropbear-dbclient dhcpcd
"
# gotta go fast
echo 'rc_parallel="YES"' >> "$dir"/etc/rc.conf
mkdir -p "$dir"/usr/local/sbin
go build -tags=netgo -o "$dir"/usr/local/sbin/fireactions-agent ./agent
# https://github.com/OpenRC/openrc/blob/master/service-script-guide.md