[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1092949: debian-installer could propose installing linux-image-cloud when run inside a VM



Hi Gioele,

Gioele Barabucci <gioele@svario.it> (2025-01-13):
> currently d-i installs `linux-image-$arch` regardless of the kind of
> machine it is installed on.

That's the general idea but that's not really what's actually happening
(devil, details, etc.).

> When used inside a virtual machine, it could make sense to ask the
> user if they want to install linux-image-cloud-$arch instead, as it
> comes with a reduced set of modules and dependencies and fits better
> the needs of modern VMs.
> 
> Detecting whether d-i is running inside virtualized environment could
> be done using `systemd-detect-virt` or `dmidecode --string
> processor-manufacturer`.

You could look into the base-installer package:
  https://salsa.debian.org/installer-team/base-installer

(A non-prehistoric example can be found in kernel/mips64el.sh)


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Attachment: signature.asc
Description: PGP signature


Reply to: