Add binfmt service template and exec template
This commit is contained in:
parent
5cc73dc1dd
commit
9fe36415a9
|
@ -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"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
export ENTRY qemu-aarch64
|
||||
|
||||
/usr/libexec/nnd/s6/binfmt-unregister
|
|
@ -0,0 +1 @@
|
|||
oneshot
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
export ENTRY qemu-aarch64
|
||||
|
||||
/usr/libexec/nnd/s6/binfmt-register
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue