Skip to content

Conversation

@joez
Copy link

@joez joez commented May 7, 2025

Add necessary modules for the QEMU VM use case

In a QEMU VM use case, the block device for the rootfs is most probably based on virtio, so we need to include these necessary virtio modules to load root device

joez added 2 commits May 7, 2025 08:58
we want to merge the modules in the same folder both explictly or
implicitly, here is an example:

copy_including_deps /$LMK/kernel/fs/fuse
copy_including_deps /$LMK/kernel/drivers/virtio

kernel/fs/fuse/virtiofs.ko depends on:

* kernel/drivers/virtio/virtio_ring.ko
* kernel/drivers/virtio/virtio.ko
* kernel/fs/fuse/fuse.ko

so folder $INITRAMFS/kernel/drivers/virtio is created when coping
kernel/fs/fuse/virtiofs.ko, and then nothing will be copied for the
kernel/drivers/virtio, because $INITRAMFS/kernel/drivers/virtio has
already been created, as the previous implementation did, which is not
what we wanted

only return if the target exists and is not a folder, so that we can
merge the wanted modules in the same folder
in a QEMU VM use case, the block device for the rootfs is most probably
based on virtio, so we need to include these necessary virtio modules to
load root device
@joez joez changed the title Virtio moduels for QEMU VM VirtIO moduels for QEMU VM May 7, 2025
@joez joez changed the title VirtIO moduels for QEMU VM VirtIO modules for QEMU VM May 7, 2025
@joez joez changed the title VirtIO modules for QEMU VM Add VirtIO modules to the initramfs for QEMU VM May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant