Finally got the single/enlarged rootfs done for all Xiaomi devices, tested flashing from stock FW on AX3600 and pushed it.
Compat version is set to 2.0 to prevent anybody from using sysupgrade at all as it would brick your device.
If you are running one of the recent builds, you can flash the *-initramfs-factory.ubi image in the non used rootfs and set env variables to boot from it and sysupgrade from that initramfs image or return to stock FW and reinstall.
Install instructions for all Xiaomi devices in the commit messages have been rewritten to be up to date, please use those.
Can somebody update the wiki with those as well?
If we dont get any regressions I will be making a PR for the target in couple of days.
Regards,
Robert
Yes, you will lose your configs - but in this case (for the devices where the device order hasn't been changde) you can restore them later (although that will require careful meddling with compat_version in /etc/config/system); it would be better not to restore your configs blindly.
I was thinking that the compat version is increased because of the necessity of booting initramfs-factory image first. If booting from that image will not cause factory default config to be present, compat version can be manually set to 2.0 and then the sysupgrade would keep the config files. I already did compat version 1.1 migration with a one-lier script provided in this forum.
Let's be clear, you need to flash the initramfs image first - which has no way to retain configurations - meaning at the sysupgrade step, there is nothing left to retain.
the compat is done to prevent any kind of brick under any circumstance... User will need to migrate and just restore a backup to have a clean and intended state.
scp *-initramfs-factory.ubi to /tmp, ubiformat write it to the inactive partition, fw_setenv the vars and reboot
Using GUI, connect to the fresh/unconfigured 192.168.1.1, and sysupgrade to *-sysupgrade.bin
Not sure if compat matters for config restore, so I manually scp'd the backup to /tmp, then cd /; tar xzf /tmp/backup*.tar.gz, then manually edited /etc/config/system and altered compat from 1.1 back to 2.0 before finally rebooting