Public bug reported: Generally, minimized images don't contain "recommends" dependencies, to keep the image small and optimized.
However, I noticed recently when calling `replace_kernel` to install a cloud kernel on a minimized image, "recommends" dependencies are always installed. As a specific example, replace_kernel "${scratch_d}" linux-oracle Will install linux-modules-extra-$VER-oracle, even though linux-modules- extra-$VER-oracle is only a "recommends" $ apt show linux-image-oracle Package: linux-image-oracle Version: 6.8.0-1008.8 Priority: optional Section: kernel Source: linux-meta-oracle Origin: Ubuntu Maintainer: Ubuntu Kernel Team <kernel-t...@lists.ubuntu.com> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 13.3 kB Provides: spl-modules (= 2.2.2-0ubuntu9), virtualbox-guest-modules (= 6.8.0-1008), wireguard-modules (= 1.0.0), zfs-modules (= 2.2.2-0ubuntu9) Depends: linux-image-6.8.0-1008-oracle Recommends: linux-modules-extra-6.8.0-1008-oracle Download-Size: 6,282 B APT-Sources: http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages Description: Linux kernel image for Oracle systems. This package will always depend on the latest kernel image available for Oracle systems. This adds 112 MB of modules to a minimized image that are not required. ** Affects: livecd-rootfs (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2076237 Title: replace_kernel installs "recommends" dependencies in minimized images To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2076237/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs