Michael Biebl [2017-03-27 18:03 +0200]: > I don't think such a service needs to be part of ssh (or systemd for > that matter), it might actually be better if that was shipped by a > separate package, which can be installed on demand for cases likes your > (and is ideally maintained by users of such functionality). > > Such a package could try to bring up the network by itself, by first > trying to directly run NM , ifup or even attempting a simple dhclient. > Directly, meaning not using the .service units which might have > dependencies which might not be satisfied by emergency.target/rescue.target.
Ubuntu's friendly-recovery might serve as a base here -- it does the above "opportunistic" network bringup, offers fsck and apt-get -f install and others (but not SSH as far as I know, but it's easy enough to extend with shell plugins). Martin
signature.asc
Description: PGP signature