My Raspberry Pi Zero running Raspbian Stretch Lite (2018-10-09) seems to be slow at boot. First off, the state of the OS:
It is basically a freshly installed image on a properly working Class 10 SD card. I made minor configurations according to https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget (changes in cmdline.txt and config.txt to enable headless SSH over USB access).
The issue is that it takes a consistent 93 seconds to boot.
systemd-analyze plot shows me that it's multi-user.target that starts no sooner than 93 seconds past boot, or about 90 seconds past loading the kernel. I tried tweaking some modules with systemctl and managed to speed up other services, but ultimately, the problem seems to be some sort of 90 second timeout with multi-user.target and overall boot time remains 93 seconds.
systemd-analyze plot can be found at http://svgshare.com/i/8kR.svg.
Is there any way to further troubleshoot this issue? Perhaps a command to definitely override this late start, if that is safe to do?
EDIT: Disabling "Wait for Network" in raspi-config did not help with the issue either.
Instead, I manually removed network services from
/etc/systemd/system/multi-user.target.wants, which helped. Be carreful, though, as I was told such an approach to be dangerous.
EDIT2: See https://raspberrypi.stackexchange.com/a/90105/92618 for what I did and why it did not work. I found a potentially dangerous way to work around the issue by setting the default start timeout in
/etc/systemd/system.conf to 30 seconds (in my case). However, if this timeout is chosen too low, the system does not boot properly!