r/AlpineLinux • u/Dry_Foundation_3023 • Nov 08 '25
Installing pihole causes diskless install to boot with a long delay on pizero2w
I have a default diskless install with just unbound+fish packages installed on a pizero2W working without issues. When i add pihole package and do a lbu commit and reboot, the pizero2w takes more than 450+ seconds to boot up.
Except for the above delay in booting up, this pihole+unbound set up has been flawlessly working for the past few weeks. The Pihole installation instructions are in wiki.
This has been logged as an issue with logs and relevant information about the setup.
Has anyone expereinced a similair issue with any other package on a diskless installation on a pizero2w or any other device. Any suggestion on possible cause or resolution is highly appreciated.
2
u/Opposite_Eagle6323 Nov 08 '25 edited Nov 08 '25
Hi, I assume "more than 450+ seconds to boot up" means that you cannot to connect into system with SSH.
I believe this is due to OpenRC's behavior which starts up the services before starting networking related services. Listing the services with
rc-statuswill output all services that are running after boot.These services can be modified in
/etc/init.d/folder and I think adding this into pihole's service file may fix this issue:Moving the service to another runlevel may be a fix as well:
https://wiki.alpinelinux.org/wiki/OpenRC#Preventing_slow_services_from_delaying_system_startup
1
u/macmpi Nov 08 '25 edited Nov 09 '25
if you are on Alpine later than 3.16, check
seedrngservice and enable it if not active (should be activated asbootservice with propersetup-alpineconfig):# service seedrng status* status: started