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
> 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.
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.
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
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