Subject: swclock on Alpine diskless

From: [email-masked]
Date: Fri, 20 Mar 2026 17:47:43 +0000

Any ideas on getting init.d/swclock to work in Alpine diskless mode?

Persistent storage filesystems are defined in /etc/fstab for LBU, APK cache, and the swclock file defined in conf.d/swclock[swclock_file]. The required filesystem isn't mounted when swclock runs in boot/shutdown (screenshots below). Modifying init./swclock[depend()] with "need localmount" causes boot errors and 60s shutdown delays. Other localmount depend() options failed too.

boot
https://github.com/user-attachments/assets/11b60f0e-32ed-48d5-b016-7488b5a95873

shutdown
https://github.com/user-attachments/assets/001a8f43-00bc-4817-9bda-499122765233

need-localmount-boot
https://github.com/user-attachments/assets/e98629f1-6825-4060-8c36-989587499077

need-localmount-shutdown
https://github.com/user-attachments/assets/796f1917-f16a-46d5-99c5-42e8f065ca4e