fix(nix/docker/aio): from testing phase

This commit is contained in:
sinanmohd
2025-02-13 23:48:18 +05:30
parent 11c9f7e6f0
commit a143b5bd46
6 changed files with 18 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ stdenv.mkDerivation {
installPhase = ''
# patchShebangs skel
fakeroot s6-linux-init-maker -N -1 -f ${./skel} -c ${basedir} compiled
fakeroot s6-linux-init-maker -C -N -1 -f ${./skel} -c ${basedir} compiled
cd compiled
find . | cpio -Hnewc --create > $out

View File

@@ -35,8 +35,9 @@ s6-rc-init -c /run/s6-service-compiled /run/service
### Numeric arguments from 1 to 5 on the kernel command line will
### override the default.
exec /run/s6-init/scripts/runlevel "$rl"
# exec /run/s6-init/scripts/runlevel "$rl"
# no runlevel because -of s6-linux-init -C flag
exec s6-rc -v2 -up change default
### If this script is run in a container, then 1. and 2. above do not
### apply and you should just call your CMD, if any, or let your

View File

@@ -5,7 +5,7 @@
### requests a machine state change via telinit.
### Ideally, it should just be a call to the service manager.
test "$#" -gt 0 || { echo 'runlevel: fatal: too few arguments' 1>&2 ; exit 100 ; }
# test "$#" -gt 0 || { echo 'runlevel: fatal: too few arguments' 1>&2 ; exit 100 ; }
### If your services are managed by sysv-rc:
@@ -15,4 +15,4 @@ test "$#" -gt 0 || { echo 'runlevel: fatal: too few arguments' 1>&2 ; exit 100 ;
# exec /sbin/openrc "$1"
### If your services are managed by s6-rc:
exec s6-rc -v2 -up change "$1"
# exec s6-rc -v2 -up change "$1"