mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +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 }:
|
||||
|
||||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue