Add machineid init

This commit is contained in:
Alex D. 2023-09-14 11:25:55 +00:00
parent 89eeaf52b3
commit 6031a2dfe3
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
5 changed files with 16 additions and 1 deletions

View File

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

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,14 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
emptyenv -p
if -n { [ -r /etc/machine-id ] }
redirfd -w 1 /etc/machine-id
foreground {
pipeline {
pipeline {
cat /dev/urandom
} tr -dc abcdef[:digit:]
} head -c 32
}
printf "\n"