Skip to content

GKI and recovery-as-boot support (finally)#48

Draft
JamiKettunen wants to merge 5 commits into
Halium:dynpartsfrom
JamiKettunen:techdebt-catchup
Draft

GKI and recovery-as-boot support (finally)#48
JamiKettunen wants to merge 5 commits into
Halium:dynpartsfrom
JamiKettunen:techdebt-catchup

Conversation

@JamiKettunen

Copy link
Copy Markdown

Stuff like this has been overlayed across most newer Ubuntu Touch ports at this point (e.g. https://gitlab.com/ubports/porting/reference-device-ports/halium12/volla-x23/volla-vidofnir/-/commits/main/ramdisk-overlay), I think it's time to bring the relevant bits back upstream here so we can stop vendoring things so much at long last which also should ease the LVM enablement steps where relevant.

Drafting for now to check if we need anything more still here.

NotKit and others added 5 commits March 24, 2026 15:22
…-ramdisk

The script will look for /ramdisk-recovery.img in the root of ramdisk
and assume device is A/B if it exists. Then, if bootloader does not
put "skip_initramfs" or "androidboot.force_normal_boot=1" in cmdline,
it triggers boot into recovery.

Cherry-picked from Volla Phone 22 [1] with dropped unnecessary
/sbin/init creation that also breaks creating the usual symlink and
avoiding extra cat -> gzip pipeline.

[1] https://gitlab.com/ubports/porting/reference-device-ports/android11/volla-phone-22/volla-mimameid/-/commit/882ee97b)
To be still tested on eMMC devices as well, works with UFS.
Various kernel features aren't built-in anymore and their modules are
split to vendor_boot ramdisk fragment concatenated on runtime into our
halium initrd. Cherry-picked from Volla Phone X23 [1]

[1] https://gitlab.com/ubports/porting/reference-device-ports/halium12/volla-x23/volla-vidofnir/-/commit/b311b797
This is needed on Android 12+ (GKI 2.0) devices where androidboot values
were moved to bootconfig and are no longer present on kernel cmdline.
GKI devices for example may require reboot-mode from
modules.load.recovery etc.
@JamiKettunen JamiKettunen marked this pull request as draft May 13, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants