Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id B26D02236BD for <~alpine/users@lists.alpinelinux.org>; Mon, 6 Feb 2023 11:47:57 +0000 (UTC) Received: by mail-oi1-x231.google.com with SMTP id dt8so9507315oib.0 for <~alpine/users@lists.alpinelinux.org>; Mon, 06 Feb 2023 03:47:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=conpSpN6b7IepCEMZUbE2G9ipYt9WYHrOcP/XGWeiv4=; b=mfjXfsPkyqnnhucRaKtTs+XhCXyAEbkiQ65LZBz2wLvAfZT70nbBIncgiJ1zEl5Zxe QEFvP6DBjL0FYw+8FYvPz6AHArtW8+kaGzgo1b2CY5yml53TeOSojY8XsQ3MhegEX1kz HE08DKw9rM1GrWoTmi3WmQQ71l/glfa07+Ir/vSZ5/w4FoKacm9BsW82Vrf4qEaJlwHc UBTzlpLp/ibRmDiR5qgT4CN09n+Bh7eEmGUs2pUQ3aBmBX0/gV+iUH/qqvOnvgBotjnD r+xsvioAhjG+LM/ViBMcFcGlEW3MvyC0Ae8KLiJDTlnyO4MJXRF73C+Ijv4T6s4Qaana HX7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=conpSpN6b7IepCEMZUbE2G9ipYt9WYHrOcP/XGWeiv4=; b=0Qh6C7GNswdjD7YHTHtSrghu5zKci5Jj49+IHP25KqAA0zJIQbuzBnnytwnRRrucGD tCPSkuDG241ZwgwsuARTILXFr+vkW9RKg9arph5L4ufab18YoOGeLvHThiH/xIr9wIjm yjcGrG8qTpLSd+l637AFmyYMPDsEw7CfTytZGONP+S/M72ufMiRkphLB3hj5ahESBPMY 92375iQjARJDw9MDoAObvTQjyrt0Q45BFkaiWWDhfjmoyf9PME83Jm51xx+x6XqmuEP7 HO6j9guLrfIgoX+E1B8PiZ8xG7t9a+/0W0LWl26FxKAQ4hrxfbw+BHwVgIYmt4tSeE1L f9hQ== X-Gm-Message-State: AO0yUKUt/PX53Xue5A81dsdT5+ZSV5R5cQ7gQb3ygqI11fn15oaLtbzC pjWYPl/lXvh1dbmA+d0YE9SRDukW5e4dr3EYl+A= X-Google-Smtp-Source: AK7set8tO5ipcWBIWLXpekoZbuxzUZgNmrnUxCeFvVWlmX3hgtxzz7B49/vwYJ61z4kKBjmK+g8VWzCQYdKxkJt2w2w= X-Received: by 2002:aca:3c89:0:b0:378:8ef6:cd66 with SMTP id j131-20020aca3c89000000b003788ef6cd66mr956314oia.272.1675684075726; Mon, 06 Feb 2023 03:47:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Philip Couling Date: Mon, 6 Feb 2023 11:47:44 +0000 Message-ID: Subject: Re: Persistent package install in raspberry pi To: Konstantin Kulikov Cc: ~alpine/users@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="00000000000016ed3605f4069a5e" --00000000000016ed3605f4069a5e Content-Type: text/plain; charset="UTF-8" Hmmm maybe that's supposed to be what happens, but it's not happening. I've already found /etc/apk/world and seen that it's populated. I think that's how a simple "apk add" (no third argument) immediately knows which packages to install, which were installed previously. I don't suppose you know where to find the trigger for these packages being installed on boot? I guess I'll need to investigate further on what I now suspect could be a bug (or something misconfigured on my system). On Mon, 6 Feb 2023 at 07:17, Konstantin Kulikov wrote: > Run "lbu commit" after package installation. This saves > /etc/apk/world, contents of which get installed on boot. > > On Mon, Feb 6, 2023 at 3:22 AM Philip Couling wrote: > > > > Following the rasbberry pi install instructions (1) I have a working > system with a persistent apk cache and am able to save /etc/ with lbm > commit. > > > > What I'm stuck on is that I want to install some other packages > persistently. At the moment all that happens is that the packages get > saved in the apk cache and the record of the fact I wanted them installed > is saved. > > > > In order to get the back I have to type "apk add" and they all > re-install. > > > > I need to have this work so that I can add my own choice of packages to > the system that are there while it boots. Not least because some have > daemons that should be kicked off on boot. > > > > Is this possible with diskless installs? Is there something else I'm > supposed to do to ensure installed packages are persisted? > > > > https://wiki.alpinelinux.org/wiki/Raspberry_Pi > --00000000000016ed3605f4069a5e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hmmm maybe that's supposed to be what happens, but it&= #39;s not happening.=C2=A0 I've already found /etc/apk/world and seen t= hat it's populated.=C2=A0 I think that's how a simple "apk add= " (no third argument) immediately knows which packages to install, whi= ch were installed previously.

I don't suppose you kn= ow where to find the trigger for these packages being installed on boot? I = guess I'll need to investigate further on what I now suspect could be a= bug (or something misconfigured on my system).

On Mon, 6 Feb 2023 a= t 07:17, Konstantin Kulikov <k.k= ulikov2@gmail.com> wrote:
Run "lbu commit" after package installation. Thi= s saves
/etc/apk/world, contents of which get installed on boot.

On Mon, Feb 6, 2023 at 3:22 AM Philip Couling <couling@gmail.com> wrote:
>
> Following the rasbberry pi install instructions (1) I have a working s= ystem with a persistent apk cache and am able to save /etc/ with lbm commit= .
>
> What I'm stuck on is that I want to install some other packages pe= rsistently.=C2=A0 At the moment all that happens is that the packages get s= aved in the apk cache and the record of the fact I wanted them installed is= saved.
>
> In order to get the back I have to type "apk add" and they a= ll re-install.
>
> I need to have this work so that I can add my own choice of packages t= o the system that are there while it boots.=C2=A0 Not least because some ha= ve daemons that should be kicked off on boot.
>
> Is this possible with diskless installs?=C2=A0 Is there something else= I'm supposed to do to ensure installed packages are persisted?
>
> https://wiki.alpinelinux.org/wiki/Raspberry_Pi
--00000000000016ed3605f4069a5e--