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:
Updated by Denis 'GNUtoo' Carikli over 3 years ago
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:- First flash the images with
heimdall flash --BOOT boot.img --RECOVERY recovery.img --SYSTEM system.img
- Then reboot to recovery during the boot by pressing the volume up, menu and power buttons
- Then select
Wipe data/factory reset
and thenFactory data reset
- Then select
Reboot the system now
Actions