Comments (9)
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.
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.
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.
That sounds reasonable.
Maybe you can add a few examples like that to the documentation so it's easier to figure out?
from systemd.
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.
Can we just update this issue to "add to docs" RFE?
from systemd.
ok, done.
from systemd.
Hey all. Did anything about this ever get documented?
from systemd.
Nope, still open.
from systemd.
Related Issues (20)
- vmspawn: Support running [email protected] as a unprivileged user
- Add generic Network directives for network configuration HOT 9
- vmspawn: Make nested virtualization toggleable HOT 3
- Get loaded policy while DBUS-daemon is running HOT 1
- mount.ddi (systemd-dissect) segfaults when called with bogus arguments
- systemd-udevd does not pick up some link dropin files HOT 9
- weird square chars in systemd console messages HOT 11
- systemd-oomd: kill more process than expected (and reported)
- systemd-cryptsetup fails to unlock TPM2 bound LUKS volume HOT 11
- systemd.path not launch script HOT 1
- Search engines link to pages with trailing slashes and end up in a 404 HOT 5
- systemctl stop <service> on failed service hangs forever HOT 2
- Failed to set EFI variable HibernateLocation: Invalid argument - when hibernating HOT 5
- docs: make clear that BindPaths= implies PrivateMounts= which detaches the mount namespace of a service from the host HOT 8
- Early boot services requiring /var are not ordered after local-fs.target HOT 9
- systemd-journal-upload hangs forever and ignores SIGTERM when connecting to unknown port and doesn't get ICMP reply HOT 2
- long messages support (--all option) for systemd-journal-gatewayd json output
- Support for AT_SYMLINK_NOFOLLOW in Systemd Bind Mounts HOT 8
- Replace "machined" label with "machine"
- systemd unexpectedly(?) terminates units with `Unexpected error response from GetNameOwner(): Connection terminated` during a "mount storm" HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systemd.