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