[Bug 2076237] [NEW] replace_kernel installs "recommends" dependencies in minimized images

Stefan Hammer 2076237 at bugs.launchpad.net
Wed Aug 7 12:52:22 UTC 2024


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-team at 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
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/2076237

Title:
  replace_kernel installs "recommends" dependencies in minimized images

Status in livecd-rootfs package in Ubuntu:
  New

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 <kernel-team at 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2076237/+subscriptions




More information about the foundations-bugs mailing list