Mount generic ramdisk as readwrite.
With this change, first stage init can prepare and move
resources to accomodate devices with and without a dedicated
recovery partition.
Test: build with and without recovery partition, and manually inspect
Bug: 171512004
Change-Id: I7bd61f74c16ee77f3f05dc208e0f3cfe81e302b0
diff --git a/core/Makefile b/core/Makefile
index 2b09c09..9335fc5 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -711,6 +711,10 @@
BUILT_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/boot.img
endif
+# kernel cmdline for GKI
+GENERIC_KERNEL_CMDLINE := rw
+.KATI_READONLY := GENERIC_KERNEL_CMDLINE
+
# $1: boot image target
# returns the kernel used to make the bootimage
define bootimage-to-kernel