replace_kernel installs "recommends" dependencies in minimized images

Bug #2076237 reported by Stefan Hammer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

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 <email address hidden>
    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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.