vm.mk: Add sr_mod to initrd modules for vm/cloud-systemd

Many cloud providers pass metadata via cdrom. Generator used by the
cloud-init to determine a datasource works before loading modules. So cdrom
modules must be loaded in the initrd.
Other linux distributions enable cdrom modules in the kernel.
This commit is contained in:
Mikhail Gordeev 2021-09-16 23:57:23 +03:00
parent c1efb923ea
commit 5f85140ade

View File

@ -25,6 +25,7 @@ vm/systemd-net: vm/systemd use/net-eth/networkd-dhcp use/net-ssh \
vm/cloud-systemd: vm/systemd-net mixin/cloud-init use/vmguest/kvm use/tty/S0 \
use/net/networkd/resolved
@$(call add,THE_KMODULES,drm)
@$(call add,VM_INITRDMODULES,sr_mod)
@$(call add,BASE_PACKAGES,update-kernel)
@$(call add,BASE_PACKAGES,apt-scripts)
@$(call add,BASE_PACKAGES,systemd-settings-disable-kill-user-processes)