replace_kernel installs "recommends" dependencies in minimized images
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-
$ 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:/
Installed-Size: 13.3 kB
Provides: spl-modules (= 2.2.2-0ubuntu9), virtualbox-
Depends: linux-image-
Recommends: linux-modules-
Download-Size: 6,282 B
APT-Sources: http://
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.