Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 57C5C223078 for <~alpine/users@lists.alpinelinux.org>; Thu, 9 Feb 2023 00:30:40 +0000 (UTC) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-16aa71c1600so638307fac.11 for <~alpine/users@lists.alpinelinux.org>; Wed, 08 Feb 2023 16:30:40 -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=OT9lrNf+gAId0J8F3ogRugTC8Hte+JQoCDXISpCXVWE=; b=oF28+hZ/Xa4rIlLkZ/40Bp+iOKW83g7ELr6oj25bxZ7MPCPxhukQEb7639VkOTJFJF tkqZlZ8TMwYTGemms6lktLl1kYvKKxWcDfxQ0G5SrNG7pMqQqZzddYDd52Zisx8aZkHe HwqY6/YAlbKJdSd9g5GBfkHX/86RUjqKLfbAN2g+mfIYc4v7DpQp/pPiGNeFpKo5woR3 HGSbvI1U9B323pWPgXGW8SAqGyMrVck8yO82mA6pca9hQbs4wNLGkXSw/6WjOTjKCiSr wh5qXnk1ItFPLhdD6MtFkRiyH6LscUJPy3U9DhwiplKYVFtWUUmZSRwbrcqg3SjcKkpC qLHA== 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=OT9lrNf+gAId0J8F3ogRugTC8Hte+JQoCDXISpCXVWE=; b=GRF8czUsH0oWwmR18qUy48KIpuvSM8ZBk4Fr2TB3bbIOKe5D7MsHTwEA6OD/iE940I Oj4jNf472Ew+hC4QGTDk5nx8CB6JlBDRZt8YQsPWx3ko0Y9cSX9zw+p7Ns1vnHfyoyo/ TchXd8cuN9D8ceqeqm9HdsW60+d6OPxxX8zhQcpc3CbaPFtO5kd8krWGazf2WO9lqDqn Y8BgEVwde0mCEXf3HMEIYEtLBCXIdLXEaoKHJS5RmfLLrn6dpENHZKprkRKszoCx/atj bppstiyi6awB7+wD9i/7qzdsx4VV8Y9Q/kq7TByxv08TLLOLnDWHhwrpzWh/dQtPo3xR dGew== X-Gm-Message-State: AO0yUKUm/FK/AzLcQenL/GZeu1qmeOf4Jp+Ecpr/2lasP0gjCaylNbUo TiIpwao+sYSnud/sSrWcKxvfF+ZyJJDRxNtVAGE= X-Google-Smtp-Source: AK7set9DgEWf8HYBmNuGdm1p8vD2nYaviIa8uWI+orrc99doqcEmYg1NfDLURnvhJlET+/o/7WWioeOr8e9J8+tXjSI= X-Received: by 2002:a05:6870:3314:b0:163:38df:5b65 with SMTP id x20-20020a056870331400b0016338df5b65mr788981oae.272.1675902638569; Wed, 08 Feb 2023 16:30:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Philip Couling Date: Thu, 9 Feb 2023 00:30:27 +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="000000000000733dd005f4397df2" --000000000000733dd005f4397df2 Content-Type: text/plain; charset="UTF-8" Oh, it's in initramfs. Okay that's a bit harder to accidentally disable. I've swapped armhf for aarch64 (both 3.17.1 raspberry pi) and the problem has gone away. So I guess this now places the problem as one of three things: - corrupted install or download - fat fingered mistake somehow disabling it - bonafide bug in armhf 3.17.1 for raspberry pi I'll assume one of the first two. If I get time I will go back and try to reproduce it from a fresh download. On Mon, 6 Feb 2023 at 23:11, Konstantin Kulikov wrote: > Installation happens in initramfs-init[0]. Ctrl+f the file for "apk add" > lines. > > [0]: https://git.alpinelinux.org/mkinitfs/tree/initramfs-init.in#n742 > > On Mon, Feb 6, 2023 at 2:47 PM Philip Couling wrote: > > > > 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 > --000000000000733dd005f4397df2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oh, it's in initramfs.=C2=A0 Okay that's a bit har= der to accidentally disable.

I've swapped armhf for = aarch64 (both 3.17.1 raspberry pi) and the problem has gone away.

So I guess this now places the problem as one of three thin= gs:
=C2=A0- corrupted install or download
=C2=A0- f= at fingered mistake somehow disabling it
=C2=A0- bonafide=C2=A0bu= g in armhf 3.17.1 for raspberry pi

I'll assume= one of the first two. If I get time I will go back and try to reproduce it= from a fresh download.

On Mon, 6 Feb 2023 at 23:11, Konstantin Kulik= ov <k.kulikov2@gmail.com>= wrote:
Installa= tion happens in initramfs-init[0]. Ctrl+f the file for "apk add" = lines.

[0]: https://git.alpinelinux.org/mki= nitfs/tree/initramfs-init.in#n742

On Mon, Feb 6, 2023 at 2:47 PM Philip Couling <couling@gmail.com> wrote:
>
> Hmmm maybe that's supposed to be what happens, but it's not ha= ppening.=C2=A0 I've already found /etc/apk/world and seen that it's= populated.=C2=A0 I think that's how a simple "apk add" (no t= hird argument) immediately knows which packages to install, which were inst= alled previously.
>
> I don't suppose you know where to find the trigger for these packa= ges being installed on boot? I guess I'll need to investigate further o= n what I now suspect could be a bug (or something misconfigured on my syste= m).
>
> On Mon, 6 Feb 2023 at 07:17, Konstantin Kulikov <k.kulikov2@gmail.com> wrote:=
>>
>> Run "lbu commit" after package installation. This saves<= br> >> /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 system with a persistent apk cache and am able to save /etc/ with l= bm commit.
>> >
>> > What I'm stuck on is that I want to install some other pa= ckages persistently.=C2=A0 At the moment all that happens is that the packa= ges get saved in the apk cache and the record of the fact I wanted them ins= talled is saved.
>> >
>> > In order to get the back I have to type "apk add" a= nd they all re-install.
>> >
>> > I need to have this work so that I can add my own choice of p= ackages to the system that are there while it boots.=C2=A0 Not least becaus= e some have daemons that should be kicked off on boot.
>> >
>> > Is this possible with diskless installs?=C2=A0 Is there somet= hing else I'm supposed to do to ensure installed packages are persisted= ?
>> >
>> > https://wiki.alpinelinux.org/wiki/Raspbe= rry_Pi
--000000000000733dd005f4397df2--