Actions
Issue #2235
openfix userdata.img flashing
Start date:
03/24/2021
Due date:
% Done:
0%
Estimated time:
Resolution:
Device:
Not device specific
Grant:
Type of work:
Actions
Added by Denis 'GNUtoo' Carikli about 4 years ago. Updated about 4 years ago.
0%
In Replicant 9 we could flash the USERDATA partition with
sudo heimdall flash --BOOT boot.img --USERDATA userdata.img --SYSTEM system.img
The userdata.img image was really small and was resized during the first boot and possibly on subsequent boots as well.
Here it doesn't work anymore probably because init tries to enforce selinux context on what it calls even with selinux in permissive mode.
So the script that did the resize (with resize2fs) isn't run anymore.
That makes the boot block when flashing it in this way.
In the meantime we have a workaround:heimdall flash --BOOT boot.img --RECOVERY recovery.img --SYSTEM system.img
Wipe data/factory reset
and then Factory data reset
Reboot the system now