Disable do_skip_initramfs
authordeadman96385 <seanhoyt963@gmail.com>
Mon, 23 Mar 2020 08:03:24 +0000 (03:03 -0500)
committerStricted <info@stricted.net>
Thu, 23 Apr 2020 16:48:43 +0000 (16:48 +0000)
This allows twrp to load properly

init/initramfs.c

index 5ea7f1b5ec44b12c8ea15e1ce2507cdcc4b9454e..bf9e02d8d6ef9c05359d9bdee3fbdfaab4dd7d61 100644 (file)
@@ -623,11 +623,11 @@ static int __init populate_rootfs(void)
 {
        char *err;
 
-       if (do_skip_initramfs) {
-               if (initrd_start)
-                       free_initrd();
-               return default_rootfs();
-       }
+//     if (do_skip_initramfs) {
+//             if (initrd_start)
+//                     free_initrd();
+//             return default_rootfs();
+//     }
 
        /* Load the built in initramfs */
        err = unpack_to_rootfs(__initramfs_start, __initramfs_size);