modules/environment/login: Fix fakeProcStat path

This commit is contained in:
Zhong Jianxin 2022-04-20 15:35:02 +08:00 committed by Alexander Sosedkin
parent f246a9e82d
commit 993cc2abfb
3 changed files with 7 additions and 4 deletions

View file

@ -44,7 +44,8 @@ writeText "login-inner" ''
${coreutils}/bin/chmod u+w $HOME/.config/nixpkgs/nix-on-droid.nix
echo "Installing first nix-on-droid generation..."
${nix}/bin/nix build --no-link --file "<nix-on-droid>" nix-on-droid
${nix}/bin/nix build --extra-experimental-features nix-command \
--no-link --file "<nix-on-droid>" nix-on-droid
$(${nix}/bin/nix path-info --file "<nix-on-droid>" nix-on-droid)/bin/nix-on-droid switch
echo

View file

@ -31,7 +31,7 @@ writeScript "login" ''
fi
fi
if [ ! -r /proc/stat ] && [ -e ${fakeProcStat} ]; then
if [ ! -r /proc/stat ] && [ -e ${installationDir}${fakeProcStat} ]; then
BIND_PROC_STAT="-b ${installationDir}${fakeProcStat}:/proc/stat"
else
BIND_PROC_STAT=""