modules/environment/login: avoid no fakeProcStat warning

This commit is contained in:
Alexander Sosedkin 2022-04-17 10:17:42 +02:00
parent 4717d351f4
commit f246a9e82d

View file

@ -1,4 +1,4 @@
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
{ config, writeScript, writeText }:
@ -31,10 +31,10 @@ writeScript "login" ''
fi
fi
if [ -r /proc/stat ]; then
BIND_PROC_STAT=""
else
if [ ! -r /proc/stat ] && [ -e ${fakeProcStat} ]; then
BIND_PROC_STAT="-b ${installationDir}${fakeProcStat}:/proc/stat"
else
BIND_PROC_STAT=""
fi
exec ${installationDir}/bin/proot-static \