How to install packages which are present on startup in alpine diskless
1
vote
1
answer
1575
views
I've installed alpine linux on an R-Pi using instructions on Alpine's wiki . The instructions note:
> Alpine Linux will be installed in diskless mode , hence, Alpine Local Backup (
lbu
) is required to save modifications between reboots.
I have a persistent package cache setup for apk
, and that is working, but as far as the actually installed packages are concerned: the manual for lbu
it only saves /etc
by default.
What I'm struggling with is figuring out how I'm supposed to install packages so they are there ready when the system boots. At the moment, the system boots with nothing new installed and only installs packages I've previously asked for if I type:
apk add
Some of the packages I want (including avahi) have daemons which are supposed to be initiated through scripts in /etc/init.d
. Even if I save /etc
the daemons will not be installed and ready to start.
What am I supposed to do to ensure packages (including daemons) are correctly installed when the system boots?
Asked by Philip Couling
(20391 rep)
Feb 5, 2023, 09:09 PM
Last activity: Feb 8, 2023, 07:41 PM
Last activity: Feb 8, 2023, 07:41 PM