nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.15k stars 65 forks source link

what should i do #273

Open lnjamn opened 11 months ago

lnjamn commented 11 months ago

/data/data/com.termux.nix/files/usr/bin/login[20]: /system/bin/pgrep: not found Welcome to Nix-on-Droid! If nothing works, open an issue at https://github.com/t184256/nix-on-droid/issues or try the rescue shell.

t184256 commented 11 months ago

Seems like the following is happening inside the upgrade logic https://github.com/t184256/nix-on-droid/blob/2301e01d48c90b60751005317de7a84a51a87eb6/modules/environment/login/login.nix#L25:

  1. /system/bin/pgrep is being used to check that nothing is using proot --- but on your device there is no /system/bin/pgrep and it prints an error above and fails in a way that assumes no proot is running
  2. code that updates proot when there's a new one is triggered regardless of the non-functional check above

The only problem I can foresee is that when proot updates, new sessions might start failing until you close all of them first.

What's your device / android version / ROM?