etc/rc.local should Want or Require network-online.target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
The fix for bug #1451797 introduced /lib/systemd/
"Units that strictly require a configured network connection should pull in network-
provider of this functionality) ... Usually, network.target is part of the boot of most systems, while network-
TL;DR - need to add "Wants=
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: systemd 245.4-4ubuntu3.13
ProcVersionSign
Uname: Linux 5.4.0-90-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: Xpra
CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read kernel buffer failed: Operation not permitted
Date: Sun Nov 14 17:22:54 2021
InstallationDate: Installed on 2017-01-08 (1771 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=
|__ Port 9: Dev 3, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
MachineType: Dell Inc. OptiPlex 3040
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: Upgraded to focal on 2021-09-02 (73 days ago)
acpidump:
dmi.bios.date: 06/30/2016
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.4.6
dmi.board.name: 0TTDMJ
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: OptiPlex 3040
dmi.product.sku: 06BB
dmi.sys.vendor: Dell Inc.
mtime.conffile.
Changed in systemd (Ubuntu): | |
status: | New → Opinion |
Hmm. Come on please. rc.local should NOT, in any way possible, depend on network-online *by default*. Enabling that After= directive was a mistake. Why do you think that any system not connected to the network but which uses anything in rc.local (like doing any *local* stuff) should not let the user to login? Is this a joke or what? Guys, come on, this is insane..
I come here after having a painful debugging session with my pc not letting me in. Because rc.local is waiting for the network which is not here.
If *your* rc.local modifications (rc.local is empty by default) require network, by all means, add a *local* config droplet like this. But never, ever, lock people out of their PCs.
*Shrug*.