chore(nix/package/docker/aio): fixes from testing phase

This commit is contained in:
sinanmohd
2025-02-24 16:57:49 +05:30
parent ffec978124
commit b31b0668a5
3 changed files with 35 additions and 12 deletions

View File

@@ -31,9 +31,12 @@ writeShellApplication {
];
text = ''
# setup /run
mkdir -m 0000 /run
mount -t tmpfs -o nodev,nosuid,mode=0755 none /run
# make sure /run is up
if [ ! -e /run ]; then
# shellcheck disable=SC2016
echo 'use $docker run with `--tmpfs /run:nodev,nosuid,exec,mode=0755` flag'
exit 1
fi
# setup basedir
mkdir -p ${base_dir}