Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 32135780E89 for <~alpine/users@lists.alpinelinux.org>; Thu, 6 Jan 2022 00:27:34 +0000 (UTC) Received: by mail-qt1-f176.google.com with SMTP id p19so705841qtw.12 for <~alpine/users@lists.alpinelinux.org>; Wed, 05 Jan 2022 16:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=OkleGMTjKVz8cUgfLuqTXEPnna6dizrMnDUHiYipISw=; b=dF657qIo662XOw+bki3/tde4yH2+fwOODXjRnGI7Vm9vSVZ4ZtcVb05qNtKsrehaAu rnpOAnWfb8VxEDSqtMyoAVpnlDyXuW6YVgtddfDNb448oCCeMl+w2XBfq7JZHJPfiSRp QsZ1dQaXWRRAkASEvbW2JFc0gElXY9u73eECkGKS7RBEOPiJWE/r83E/DHf9WNA1G3jm VjZilcsd8ibJkWJ88YcQN1qOBedDGvabZrVU9IobgzhIJnYJRUbhoU4HP1mj9GRPTG7P uKL51lI/lziOqaei6gTYJWtgdg5a/vU88KpFWBXbKJT0dnFZLuRwFPUR7QiY9Oh/c2tl YgCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OkleGMTjKVz8cUgfLuqTXEPnna6dizrMnDUHiYipISw=; b=bbuqHdA7IGoYuKswWNUOaOnCMDcJ3wuAvKa2PXY4owVYy/F7kotK3P/PylxOlHJ0fz e7stZHw7cG0OgaZhGVchXheqYpD/jV8QqU+18uY6oXjlq/qqLnKDCX9noy1AKhviNvjt gFjpGKxcPiGFvn6oEgjdF6oQPqM9dO/InRbdEV83cIwVhbbIEt2d067bBXnejP1ht0ST BwDnSiOrefZ46DpQfAj3OIXTgEhUFg8g+9O1vQ4alOr4N1bcXa+M+WwabFuZacgSJ4mT +556NMZKQPsyiOlQBNXIa+UvJPafP/gi7etsztb6eFDdcAlARMRleRBSnLspIwe0FK5K s6xQ== X-Gm-Message-State: AOAM532J4V35Sh+muTnJ7jd84X6GzxrvaKYe67MklfuoCbPNEqlD+QOE cqdWHDDQ2ePvp+iLjJ+hwxtguTiL/FpbN1iR18OH+ev6hqs= X-Google-Smtp-Source: ABdhPJxBztdWm5TMw5hFMrgyilE5yNJgljL/BAqcEGkZ8XaYUJZrRdRTNx4O1QQA3916+K6uwwJBSM1KgVCdWi9TfLc= X-Received: by 2002:ac8:7b21:: with SMTP id l1mr49865612qtu.380.1641428852810; Wed, 05 Jan 2022 16:27:32 -0800 (PST) MIME-Version: 1.0 From: Parke Date: Wed, 5 Jan 2022 16:26:56 -0800 Message-ID: Subject: A persistent mini root filesystem, apk add errors, and --force-non-repository To: ~alpine/users@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Hello, I am running a version 3.15.0 Alpine mini root filesystem in a chroot environment. When I run 'apk add' to install a custom-built package, I get this error: 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. In my case, the underlying filesystem is persistent, so I don't believe enabling package caching is appropriate. 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. Thank you, Parke