Add VirtIO modules to the initramfs for QEMU VM#288
Open
joez wants to merge 2 commits intoTomas-M:masterfrom
Open
Add VirtIO modules to the initramfs for QEMU VM#288joez wants to merge 2 commits intoTomas-M:masterfrom
joez wants to merge 2 commits intoTomas-M:masterfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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