Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id EC8D3221CDA for <~alpine/users@lists.alpinelinux.org>; Mon, 6 Feb 2023 23:11:59 +0000 (UTC) Received: by mail-vs1-xe2e.google.com with SMTP id k4so14443644vsc.4 for <~alpine/users@lists.alpinelinux.org>; Mon, 06 Feb 2023 15:11:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lnIFVy24gPsrK0R8H3B8IB0U397QayIrvRjZ57PMMVA=; b=px9C3Qv+VVS8ZQpgryHH4waWEoCr9uCX5wqYMw3t2H9inf8TApxlxcq3uEX8+xj4SF 28W/EktBjZN3QQGg4YyumOBR8/ruv8DCMlyKFxUp6tsr0ukPQfnE1rFN7JS27IFr0paF vn6GK+5IQDiNQ8QrhNuqrLxKbAV4Lw764fT2YqOSFwkmbcTWLX3jgQfuT9zo7xOShA5r fp7nSMwoPsEPlDt0tq0oG2ljQlP/b0+KwpT5uVMaPrHHn0eHyNu1lkWAyuQFQDqnOMjA GuUM7hUq1M0EehG4dJwr0WsuGYhKMnzX8q4qy3DB3tKytK13yc2iYDe2NZ/ArAkf4wCb uHpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding: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=lnIFVy24gPsrK0R8H3B8IB0U397QayIrvRjZ57PMMVA=; b=HaDBKc3m6sxglYiyTDVX1Wo5gvkjf/u2EwRy8NSUXwasgUw31A7cldlDFinnY7Gukb SW2CBvjCwjb5FvIN1a4LZAlpHncEJKwTGGcHRzlSHOG0vqZHgNf2j1O2CpUBEM90DbYA 8ify4OjzVflR2HnJq3aKHtYT434ppCW7+q2Ps/OGDeqnIdW5k2fY+asUFTTTblQy32uY jic9SYGbf8cAgT0rJOkgieC38kxv79juF0yJZUwGZbewjS9C4k5nvr8dTesQooLg90C/ JxGaEW+MgsWiTW2lZe10h8tknApXN1btRsx+FZzF31G/z89FaGc+5faB0JL7DiHmDOvZ wlxA== X-Gm-Message-State: AO0yUKXlDG5hsqZdNQxXnYLrm8PcwkM3beX/pVpFTa5c3meURuby5nXe Ck8iDv2oK/vj4LN+xHCA1nlmjRIDl2QHfGEIAUo= X-Google-Smtp-Source: AK7set+JAfQBjat7IRVFtjkbNRwLZo0HGRCFXOFj97ntIOvGxhJumabEGqiHoXPyADY+f/lh8nzdNjv7a9usiKNGyZA= X-Received: by 2002:a67:ab4d:0:b0:3f9:b1bf:c0c3 with SMTP id k13-20020a67ab4d000000b003f9b1bfc0c3mr327236vsh.66.1675725118577; Mon, 06 Feb 2023 15:11:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Konstantin Kulikov Date: Tue, 7 Feb 2023 02:11:47 +0300 Message-ID: Subject: Re: Persistent package install in raspberry pi To: Philip Couling Cc: ~alpine/users@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Installation happens in initramfs-init[0]. Ctrl+f the file for "apk add" li= nes. [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 tha= t's how a simple "apk add" (no third argument) immediately knows which pack= ages to install, which were installed previously. > > I don't suppose you know where to find the trigger for these packages bei= ng installed on boot? I guess I'll need to investigate further on what I no= w suspect could be a bug (or something misconfigured on my system). > > On Mon, 6 Feb 2023 at 07:17, Konstantin Kulikov wr= ote: >> >> 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 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 persis= tently. At the moment all that happens is that the packages get saved in t= he 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-inst= all. >> > >> > 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. Not least because some have da= emons 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