Use bundle.sysctl by default in core and change update to switch to not-active database

This commit is contained in:
Alex D. 2024-06-22 07:59:01 +00:00
parent 29b838ff96
commit 1577dfcf09
Signed by: caskd
GPG Key ID: E5AE8A47B8EFC7ED
7 changed files with 15 additions and 2 deletions

View File

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

View File

@ -74,7 +74,7 @@ swap() {
}
update() {
if ! s6-rc-update -l "$S6_LIVE_PATH" "$S6_SV_PATH/current.$(DB_FRESH_ACT)"; then
if ! s6-rc-update -l "$S6_LIVE_PATH" "$S6_SV_PATH/current.$(DB_FRESH_NAC)"; then
error "Failed to update live state of the database"
return "$?"
fi

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
export VAL 0
export SYSCTL kernel/unprivileged_userns_clone
/usr/libexec/nnd/sysctl

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,8 @@
#!/bin/execlineb -P
importas -i XDG_CONFIG_HOME XDG_CONFIG_HOME
export VAL 0
s6-envdir -I ${XDG_CONFIG_HOME}/s6/env/sysctl.kernel-unprivileged_userns_clone
export SYSCTL kernel/unprivileged_userns_clone
/usr/libexec/nnd/s6/sysctl