Opened 8 years ago
Closed 8 years ago
#11249 closed defect (fixed)
usbutils: systemd service should depend on network-online.target
| Reported by: | Xi Ruoyao | Owned by: | blfs-book |
|---|---|---|---|
| Priority: | normal | Milestone: | 8.4 |
| Component: | BOOK | Version: | systemd |
| Severity: | medium | Keywords: | |
| Cc: |
Description
systemctl status update-usbids.service reported:
● update-usbids.service - Update usb.ids file
Loaded: loaded (/lib/systemd/system/update-usbids.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-10-14 18:03:20 CST; 2h 33min ago
Docs: man:lusub(8)
Main PID: 211 (code=exited, status=4)
10月 14 18:03:19 xry111-work systemd[1]: Starting Update usb.ids file...
10月 14 18:03:19 xry111-work wget[211]: --2018-10-14 18:03:19-- http://www.linux-usb.org/usb.ids
10月 14 18:03:20 xry111-work wget[211]: Resolving www.linux-usb.org... failed: Temporary failure in name resolution.
10月 14 18:03:20 xry111-work wget[211]: wget: unable to resolve host address 'www.linux-usb.org'
10月 14 18:03:20 xry111-work systemd[1]: update-usbids.service: Main process exited, code=exited, status=4/NOPERMISSION
10月 14 18:03:20 xry111-work systemd[1]: update-usbids.service: Failed with result 'exit-code'.
10月 14 18:03:20 xry111-work systemd[1]: Failed to start Update usb.ids file.
This is because wget was executed before the setting up of Internet connection. We should change
After=local-fs.target
to
After=local-fs.target network-online.target
(Just like DJ's commit to make-ca.)
Note:
See TracTickets
for help on using tickets.

BTW it should be
man:lsusb(8)instead ofman lusub(8).