From 9a457d325865e49aca09649f38a789bb8789e433 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 22 May 2023 12:17:04 -0300 Subject: [PATCH] correr openrc paralelo --- .gitignore | 3 +-- build-rootfs.sh | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 40d3e22..4e5f808 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ - rootfs.ext4 rootfs.qcow2 fireactions *.ext4 -vmlinux.bin \ No newline at end of file +vmlinux.bin diff --git a/build-rootfs.sh b/build-rootfs.sh index bca5a92..a1ae6ba 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -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