Fix manager and shm mount fstype

This commit is contained in:
Alex D. 2022-11-26 14:39:33 +00:00
parent c55bb36454
commit fc6a3ac30f
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
3 changed files with 10 additions and 9 deletions

View File

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

View File

@ -66,15 +66,16 @@ distdefs() {
custom() {
local SVC="$1"
[ -e "$S6_RC_PATH/$SVC" ] || error "Service $SVC doesn't exist"
[ -h "$S6_RC_PATH/$SVC" ] || error "Service $SVC is already a custom instance"
rm -rf "$S6_RC_PATH/$SVC"
cp -r "$S6_DIST_PATH/rc/$SVC" "$S6_RC_PATH/$SVC"
}
for act in $@; do
cstate
case "$act" in
generate|update|swap|dist) eval "$act" || return;;
*) error "Invalid action $act";;
esac
done
cmd="$1"
shift
cstate
case "$cmd" in
generate|update|swap|dist|custom) eval "$cmd" $@;;
*) error "Invalid command $cmd";;
esac

View File

@ -1,7 +1,7 @@
#!/bin/execlineb -P
define DEST /dev/shm
define CLEANDEST dev-shm
define FSTYPE shm
define FSTYPE tmpfs
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH