Add option to bypass default hardcoded kernelopts #4468
Labels
C: core
P: minor
Priority: minor. The lowest priority, below "default."
r4.0-dom0-stable
T: enhancement
Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.
Milestone
By default VM's kernelopts are only added to default hardcoded values. Right now, for Qubes 4.0, this hardcoded part is:
This is useful for Linux VMs (especially
root=/dev/mapper/dmroot
part), but for others it is either useless (Windows), or even harmful (Mirage OS). In some cases, even for Linux it needs some adjustments (nomodeset
is harmful for GPU passthrough).So, it would be useful to have an option to not prepend those options and use only what's set in kernelopts property. But it needs to be done carefully to not break existing installations - if in any case,
root=/dev/mapper/dmroot
(or other) would be unexpectedly removed, VM will not boot.I think this can be done with
no-default-kernelopts
qvm-feature, which would be disabled by default.Alternative approach would be to remove this hardcoded value from libvirt xml template and move to default kernelopts value, but that is more fragile:
The text was updated successfully, but these errors were encountered: