Add binfmt service template and exec template

This commit is contained in:
Alex D. 2023-05-11 09:20:32 +00:00
parent 5cc73dc1dd
commit 9fe36415a9
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
6 changed files with 27 additions and 1 deletions

View File

@ -3,7 +3,7 @@
. ../../APKBUILD.template
pkgname=nnd-s6-services
pkgver=2.25
pkgver=2.26
pkgrel=0
pkgdesc="Base services for s6"
depends="s6-rc s6-portable-utils s6-linux-utils"

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
export ENTRY qemu-aarch64
/usr/libexec/nnd/s6/binfmt-unregister

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
export ENTRY qemu-aarch64
/usr/libexec/nnd/s6/binfmt-register

View File

@ -0,0 +1,9 @@
#!/bin/execlineb -W
importas -i ENTRY ENTRY
importas -D /etc/binfmt.d/${ENTRY}.conf CONFIG CONFIG
s6-envdir -I /etc/s6/env/path
emptyenv -p
redirfd -w 1 /proc/sys/fs/binfmt_misc/register
cat $CONFIG

View File

@ -0,0 +1,8 @@
#!/bin/execlineb -W
importas -i ENTRY ENTRY
s6-envdir -I /etc/s6/env/path
emptyenv -p
redirfd -w 1 /proc/sys/fs/binfmt_misc/$ENTRY
echo -1