mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-17 06:21:14 +01:00
modules/environment/login: avoid no fakeProcStat warning
This commit is contained in:
parent
4717d351f4
commit
f246a9e82d
1 changed files with 4 additions and 4 deletions
|
|
@ -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 }:
|
{ config, writeScript, writeText }:
|
||||||
|
|
||||||
|
|
@ -31,10 +31,10 @@ writeScript "login" ''
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -r /proc/stat ]; then
|
if [ ! -r /proc/stat ] && [ -e ${fakeProcStat} ]; then
|
||||||
BIND_PROC_STAT=""
|
|
||||||
else
|
|
||||||
BIND_PROC_STAT="-b ${installationDir}${fakeProcStat}:/proc/stat"
|
BIND_PROC_STAT="-b ${installationDir}${fakeProcStat}:/proc/stat"
|
||||||
|
else
|
||||||
|
BIND_PROC_STAT=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec ${installationDir}/bin/proot-static \
|
exec ${installationDir}/bin/proot-static \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue