Is there any solution to get a sysupgrade to be more customizable ?
I need to get the overlay (real rootfs) partition to be reformated and so to be resynchronized with the new system image file installed.
Then I need also to opkg install some more ipkg to this overlay root fs.
Is it all possible from sysupgrade or do I need to get some hooks at first bootup to exist ?
I use an extroot which makes upgrading a bit more annoying, but I just run some scripts which make it fairly simple.
My process:
create backup
remove the extroot device (an SD card in my case)
boot the system, run sysupgrade (without preserving settings)
install packages for extroot
re-insert extroot device
mount extroot device, delete all files
perform extroot process; reboot
install packages
restore backup
I have scripts to handle the package installation (both pre- and post-extroot) as well as perform the media erase and extroot pivot process, so it all takes ~10 mins.