spartrekus
Posts: 16
Joined: Sun Jun 11, 2017 12:36 pm

Clean RASPBIAN STRETCH LITE takes ages to boot!

Tue Sep 12, 2017 6:55 pm

Hello,

I unzipped the image, and copied it as normally. "Starting Hostname Services" takes a century to pass by.

RASPBIAN STRETCH LITE
Minimal image based on Debian Stretch
Version:September 2017
Release date:2017-09-07

There is really something wrong with the newest release. The clean install is so slow to boot. The previous releases were much better considering this point.

Besides, when looking at how evolves Debian, it would be better that the Raspbian development does propose SystemV rather than SystemD.
This would be of benefits for everything running on the PI, including the boot time.

Thank you for your help

User avatar
topguy
Posts: 5935
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Clean RASPBIAN STRETCH LITE takes ages to boot!

Tue Sep 12, 2017 7:18 pm

A good thing with systemd is that its quite easy to get a overview of what takes time during boot.

This is from Stretch Lite (almost clean) booting on a PiZeroW, 26 seconds from rainbowsquare to login prompt.

Code: Select all

[email protected]:~ $ systemd-analyze blame
          8.748s dhcpcd.service
          5.396s hciuart.service
          3.782s networking.service
          1.955s keyboard-setup.service
          1.736s kbd.service
          1.527s raspi-config.service
          1.523s alsa-restore.service
          1.482s console-setup.service
          1.154s rsyslog.service
           973ms avahi-daemon.service
           970ms dphys-swapfile.service
           904ms systemd-journal-flush.service
           888ms systemd-udev-trigger.service
           733ms fake-hwclock.service
           726ms systemd-setup-dgram-qlen.service
           721ms [email protected]
           615ms systemd-modules-load.service
           597ms sys-kernel-debug.mount
           565ms systemd-tmpfiles-setup.service
           538ms ntp.service
           526ms systemd-logind.service
           510ms plymouth-read-write.service
           506ms triggerhappy.service
           445ms systemd-fsck-root.service
           428ms kmod-static-nodes.service
           365ms plymouth-start.service
           347ms systemd-remount-fs.service
           321ms systemd-tmpfiles-setup-dev.service
           265ms sys-kernel-config.mount
           239ms rc-local.service
           229ms bluetooth.service
           216ms systemd-sysctl.service
           210ms systemd-user-sessions.service
           205ms boot.mount
           199ms systemd-update-utmp.service
           175ms plymouth-quit-wait.service
           169ms dev-mqueue.mount
           101ms udev-finish.service
            92ms systemd-random-seed.service
            88ms systemd-udevd.service
            87ms plymouth-quit.service
            84ms systemd-update-utmp-runlevel.service
            82ms [email protected]
            70ms systemd-tmpfiles-clean.service
            70ms [email protected]

DirkS
Posts: 10010
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Clean RASPBIAN STRETCH LITE takes ages to boot!

Tue Sep 12, 2017 8:10 pm

Also

Code: Select all

systemd-analyze critical-chain
See e.g. https://wiki.archlinux.org/index.php/Im ... ot_process

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6074
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Clean RASPBIAN STRETCH LITE takes ages to boot!

Wed Sep 13, 2017 1:56 pm

Do you have ethernet plugged in with a dhcp server available?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24129
Joined: Sat Jul 30, 2011 7:41 pm

Re: Clean RASPBIAN STRETCH LITE takes ages to boot!

Wed Sep 13, 2017 4:36 pm

spartrekus wrote:
Tue Sep 12, 2017 6:55 pm
Hello,

I unzipped the image, and copied it as normally. "Starting Hostname Services" takes a century to pass by.

RASPBIAN STRETCH LITE
Minimal image based on Debian Stretch
Version:September 2017
Release date:2017-09-07

There is really something wrong with the newest release. The clean install is so slow to boot. The previous releases were much better considering this point.

Besides, when looking at how evolves Debian, it would be better that the Raspbian development does propose SystemV rather than SystemD.
This would be of benefits for everything running on the PI, including the boot time.

Thank you for your help
Hardly going to be the new release - no-one else is seeing the problem...so something to do with your setup.

Raspbian follows Debian with regard to SystemD. We are not going to change that, too much work to maintain - we just keep as much of Debian as possible with Raspberry Pi specific patches over the top.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

mattdaus
Posts: 3
Joined: Wed Dec 27, 2017 12:15 am

Re: Clean RASPBIAN STRETCH LITE takes ages to boot!

Wed Dec 27, 2017 11:20 am

I have this issue as well, hanging on networking.service (specifically at 'starting hostname service') - but it's probably most likely the contents of my /etc/network/interfaces as I try and run the Pi3 as an Access Point, that also boots up wlan0 and eth0... so you can connect to the AP, then tell the pi what wifi to connect to as required (through a program).

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-ssid "ssidname"
wpa-psk "password"

Takes over a minute.

Return to “Troubleshooting”