Files
pmaports-rtwo/device/archived/linux-essential-mata/init-initramfs-disable-do_skip_initramfs.patch
T
Aster Boese 1d0189e5b4 essential-mata: move to archived
The kernel is very broken and does not compile, event with
multiple rounds of patching. As I am not the maintainer,
the amount of patching is getting invasive enough that I
cannot be sure that the kernel will still run, even if
somebody is able to get it compiled.

[ci:skip-vercheck]

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9057>
2026-08-05 11:15:34 +00:00

38 lines
955 B
Diff

From 75dedb7524818dfa9904417fe1e5ac0c40291d89 Mon Sep 17 00:00:00 2001
From: Zhuowei Zhang <linux@worthdoingbadly.com>
Date: Tue, 27 Nov 2018 14:24:17 -0800
Subject: [PATCH 2/2] init: initramfs: disable do_skip_initramfs
On Android devices with A/B partition scheme, the initramfs is
ignored when booting into the operating system. This breaks
postmarketOS, which requires the initramfs.
This reverts the change so the initramfs is always used.
Based on a patch by erfanoabdi.
---
init/initramfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/init/initramfs.c b/init/initramfs.c
index bf3af10c500a..34af892143b2 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -622,11 +622,13 @@ static int __init populate_rootfs(void)
{
char *err;
+ /*
if (do_skip_initramfs) {
if (initrd_start)
free_initrd();
return default_rootfs();
}
+ */
err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
if (err)
--
2.17.1