Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 2B887780DB5 for <~alpine/users@lists.alpinelinux.org>; Thu, 6 Jan 2022 00:35:56 +0000 (UTC) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1641429354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yqij9FSKlWWYifzDbQNQhemQdynMT6ClTD4mMzk8e7o=; b=blvzw8nMUkuirTB4aO81uR6F3GEGDi38VrsHf5hguJu4Ssfk3U0DlMLFkWq6gFgiRzZCg0 ++6koA+7hvR/s5lTPRsN1W7dOeCN42zbCGHdFGMoSensShHHhVSGlW2flf4EYYCoV6zGII T7N0f4kNbVh+rB7WuGNFh5hkVZ/y/zk= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 06 Jan 2022 01:35:52 +0100 Message-Id: To: "Parke" , <~alpine/users@lists.alpinelinux.org> Cc: Subject: Re: A persistent mini root filesystem, apk add errors, and --force-non-repository X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" References: In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: ayaya.dev > ERROR: You tried to add a non-repository package to system, but it > would be lost on next reboot. Enable package caching (apk cache > --help) or use --force-non-repository if you know what you are doing. > > Additionally, the mini root filesystem is not aware of reboots at all. > I simply chroot into the filesystem when I want to use it. (Actually, > I am using lxroot, not chroot, but that probably makes no difference.) > > My question is: How do I configure the extracted mini root filesystem > so that it believes it is persistent? I'd like to avoid using > --force-non-repository if possible. That warning is printed when apk detects that its database is on a tmpfs (and is missing either the cache or the override flag, as you saw). A regular chroot always worked for me, so I'm not sure if lxroot is doing something different here.