File 559b54d-load-ext4.patch of Package virt-sandbox
Index: libvirt-sandbox-0.6.0/libvirt-sandbox/libvirt-sandbox-builder-machine.c
===================================================================
--- libvirt-sandbox-0.6.0.orig/libvirt-sandbox/libvirt-sandbox-builder-machine.c
+++ libvirt-sandbox-0.6.0/libvirt-sandbox/libvirt-sandbox-builder-machine.c
@@ -187,6 +187,13 @@ static gchar *gvir_sandbox_builder_machi
* the file isn't found */
gvir_sandbox_config_initrd_add_module(initrd, "af_packet.ko");
+ /* In case ext4 is built as a module, include it and its deps
+ * for the root mount */
+ gvir_sandbox_config_initrd_add_module(initrd, "crc16.ko");
+ gvir_sandbox_config_initrd_add_module(initrd, "mbcache.ko");
+ gvir_sandbox_config_initrd_add_module(initrd, "jbd2.ko");
+ gvir_sandbox_config_initrd_add_module(initrd, "ext4.ko");
+
if (!gvir_sandbox_builder_initrd_construct(builder, initrd, targetfile, error))
goto cleanup;