GithubHelp home page GithubHelp logo

Comments (7)

t184256 avatar t184256 commented on August 26, 2024

That sounds very straightforward, because it is quite easy to extract it from /etc/passwd somewhere in login-inner and execute it instead of bash; and, at the same time, very complicated, because there should be a recovery mechanism if the shell is broken.

from nix-on-droid.

Gerschtli avatar Gerschtli commented on August 26, 2024

/system/bin/sh should be considered a valid fallback I think or try /bin/sh at least, but this should not be to complicated.

from nix-on-droid.

t184256 avatar t184256 commented on August 26, 2024

The point is, I cannot clearly formulate a criteria to determine whether the user shell is broken or not. Once we have it, yeah, it's probably not that complicated.

from nix-on-droid.

Gerschtli avatar Gerschtli commented on August 26, 2024

Why bother with this question, when we have a failsafe version? I don't really know, what the failsafe one really is, but maybe the user could repair his installation this way?

from nix-on-droid.

t184256 avatar t184256 commented on August 26, 2024

Because the failsafe version drops one outside the nix-managed environment, and fixing it does not sound that simple when your only way to get into it is broken.

So, if I use, for example, xonsh as your shell, make a syntax error in my .xonshrc, and that .xonshrc is managed with Nix, fixing it from the recovery env would require detangling some broken symlinks that make no sense to get to either that .xonshrc or login-inner.

from nix-on-droid.

Gerschtli avatar Gerschtli commented on August 26, 2024

Ah I get your point, that's indeed tricky.. It's like we should add a flag somewhere, that the app should use /bin/sh instead of the configured shell. But I don't know, how this should be done..

from nix-on-droid.

Gerschtli avatar Gerschtli commented on August 26, 2024

Closed via #57

from nix-on-droid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.