Coder Social home page Coder Social logo

Comments (9)

mbiebl avatar mbiebl commented on May 14, 2024

So you want networking and ssh being started from the same file system you want to check?
In this specific use case, I think it would be better if you used something like dropbear in your initramfs, where you can actually safely check the root fs.

That said, I think the idea to have an emergency mode + network could be useful. Say because systemd dropped you into the emergency shell as it couldn't find all devices listed in /etc/fstab.

from systemd.

Fry-kun avatar Fry-kun commented on May 14, 2024

I think most of the time the root fs is stable enough to run ssh daemon. Considering the drives nowadays are measured in TBs, it's not likely a particular error is on the ssh binaries/configs.
Although if the system's exact ssh config can't be used, ssh server must not be started -- it's probably a security risk

from systemd.

poettering avatar poettering commented on May 14, 2024

Well, I can see why in some cases this might make sense, but I doubt we should introduce this a a concept, since it's so arbitrary: people's usecases are so vastly different here, and some might want a target that sets up networking only on some specific ifaces, others might want to run both ssh and ntworking, others only networking. And so on. Given that this is all that unclear I think it's better to leave definition of such targets to the user: just create your own target "my-networked-rescue.target" and then add in as deps rescue.target and whatever else you want.

Or, alternatively, just use systemd.wants=systemd-networkd.service on the kernel cmdline option (or whatever service is responsible for your networking), without any local configuration. THis will just pull in that one specific service, and not change anything else.

from systemd.

Fry-kun avatar Fry-kun commented on May 14, 2024

That sounds reasonable.
Maybe you can add a few examples like that to the documentation so it's easier to figure out?

from systemd.

poettering avatar poettering commented on May 14, 2024

Sure, adding more docs always makes sense. Consider filing a feature request issue for that. or even better even provide a patch as PR...

from systemd.

Fry-kun avatar Fry-kun commented on May 14, 2024

Can we just update this issue to "add to docs" RFE?

from systemd.

poettering avatar poettering commented on May 14, 2024

ok, done.

from systemd.

lkraav avatar lkraav commented on May 14, 2024

Hey all. Did anything about this ever get documented?

from systemd.

keszybz avatar keszybz commented on May 14, 2024

Nope, still open.

from systemd.

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.