~alpine/users

4 2

diskless mode: apk add + lbu commit + reboot: miss a lot of packages!

Details
Message ID
<48B3BD70-1044-41FD-9CDB-B9375118393E@ipik.org>
DKIM signature
missing
Download raw message
Hi,

I’m installing a few packages (with lots of dependencies) in diskless mode:
that’s about 128 total.
They do all install fine, no errors and do work live.

I then do: lbu commit -d and reboot.
Lots of packages and services are missing after reboot.
I do same reinstall again: 106 get re-installed…
(so 22 were retained, but most were skimmed-out)

How does lbu decides to skim-out some of the packages?
How can I check, before rebooting, which ones will be skimmed & why?

Or does this skimming happen at early boot stage?
How to check what happens then?

Thanks for any tip!

PS: some are pinned to EDGE repo, logs here:
https://pastebin.com/Jby28SjF
Konstantin Kulikov <k.kulikov2@gmail.com>
Details
Message ID
<20200509220413.7aac2cf497666347074f8913@gmail.com>
In-Reply-To
<48B3BD70-1044-41FD-9CDB-B9375118393E@ipik.org> (view parent)
DKIM signature
missing
Download raw message
> How does lbu decides to skim-out some of the packages?

Do you have apk cache enabled? /etc/apk/cache should be a symlink.
If not (if symlink does not exist), run setup-apkcache and see if that helps.
Details
Message ID
<67D7E923-CB5C-4546-8F7A-FC6A577FBAC4@ipik.org>
In-Reply-To
<20200509220413.7aac2cf497666347074f8913@gmail.com> (view parent)
DKIM signature
missing
Download raw message
Hi,

Thanks for feedback. Yes cache is enabled and packages are
all in there. (when I re-install manually, files are not downloaded, they come
from cache). 

However at boot system do not reinstall them…
Unsure how install is managed at boot, if it follows some list hidden somewhere.

apk -v cache clean would remove them all obviously :(


> On 9 May 2020, at 21:04, Konstantin Kulikov <k.kulikov2@gmail.com> wrote:
> 
>> How does lbu decides to skim-out some of the packages?
> 
> Do you have apk cache enabled? /etc/apk/cache should be a symlink.
> If not (if symlink does not exist), run setup-apkcache and see if that helps.
Konstantin Kulikov <k.kulikov2@gmail.com>
Details
Message ID
<20200510155739.a0d9041829d02350a6acf76a@gmail.com>
In-Reply-To
<67D7E923-CB5C-4546-8F7A-FC6A577FBAC4@ipik.org> (view parent)
DKIM signature
missing
Download raw message
Start by examining apkovl file, use "lbu ci -v" to find where it is saved. Check that /etc/apk/world in apkovl contains your packages.
Remove "quiet" option from kernel cmdline in bootloader config and reboot.
Verify that initram loads correct file.

Code that loads apkovl at boot is here https://git.alpinelinux.org/mkinitfs/tree/initramfs-init.in#n563
Details
Message ID
<5EA81B5F-81B1-468E-A0BE-721CE1CD804C@ipik.org>
In-Reply-To
<20200510155739.a0d9041829d02350a6acf76a@gmail.com> (view parent)
DKIM signature
missing
Download raw message
Thanks.

I found the problem finally: I was doing install with --repositories-file REPO
option. Unexpectedly, when system reboots (with std repositories) it does not
seem to validate such cached apps.

If I set my REPO file into /etc/apk/repositories, then all is good, and all
cached apps are reloaded at boot time!

Really strange behaviour for cache validation, and I could not find any
detailed information about this.
Is that a feature or bug?
Would like to understand the reasoning to not get trapped in the future.



> On 10 May 2020, at 14:57, Konstantin Kulikov <k.kulikov2@gmail.com> wrote:
> 
> Start by examining apkovl file, use "lbu ci -v" to find where it is saved. Check that /etc/apk/world in apkovl contains your packages.
> Remove "quiet" option from kernel cmdline in bootloader config and reboot.
> Verify that initram loads correct file.
> 
> Code that loads apkovl at boot is here https://git.alpinelinux.org/mkinitfs/tree/initramfs-init.in#n563
Reply to thread Export thread (mbox)