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

Package:
debian-installer
Source:
debian-installer
Description:
Debian Installer documentation
Submitter:
Gioele Barabucci
Date:
2025-01-14 01:54:02 UTC
Severity:
normal
#1092949#5
Date:
2025-01-13 18:55:23 UTC
From:
To:
Dear debian-installer developers,

currently d-i installs `linux-image-$arch` regardless of the kind of
machine it is installed on.

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`.

Regards,

#1092949#12
Date:
2025-01-14 01:52:56 UTC
From:
To:
Hi Gioele,

Gioele Barabucci <gioele@svario.it> (2025-01-13):

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

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,