Support EasyOS update beyond 5.2.4
Easy 5.2.4 will be the last using fscrypt v1. I have posted about the migration v1 to v2:
https://bkhome.org/news/202305/fscrypt-v2-working-in-initrd.html
I have modified two scripts, /usr/local/easy_version/easy-update and 'init' in the initrd, to handle updating from v1 folder encryption to v2.
Basically, 'easy-update' copies the contents of of the encrypted folders into a temporary folder, then the 'init' script at next bootup (after the update) recreates the encrypted folders with the new v2 then restores from the temporary folder.
Commit:
https://github.com/bkauler/woofq/commit/73d89bd6d40564b4dfc5d0e479b2062c148f5ec7
Not tested yet.
The new 'easy-update' script will be in Easy 5.2.4; however, the script can be downloaded to /usr/local/easy_version in any earlier release of Easy Kirkstone-series. The file can be downloaded from here (see the "Raw" button):
The catch is it will need enough free space in the
working-partition for the temporary folder. The script does check
for that.
Tags: easy