-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add migration from FFULM to FFMUC #370
Conversation
@maurerle We want to run the migration from older versions (that are based on <=OpenWRT 19.07) towards our legacy first and then let all devices that can migrate to stable auto-migrate to stable afterwards. Manually triggered CI run: https://github.com/freifunkMUC/site-ffm/actions/runs/8239459590 |
I replace the custom patch with a package, so that it's easier to work on it. This should also fix outstanding migration issues. |
when the x86-64 build is done i going to test the sysupgrade again Update Logs: https://gist.github.com/T0biii/6417727bec661755f318d4dd9508cd1a |
Logs after sysupgrade and after autoupdater: After The Autoupdater there are still left some things that need to be cleand up: |
https://gist.github.com/T0biii/1bae4151d1d2d911371e152232cbf7ca
|
2042b70
to
6f1a432
Compare
Log Info after Upgrade:
seems to be a cronjob from ULM to publish services/map infos Cronjobs
|
@T0biii thanks for spotting this. I compared backups from a firstboot legacy and a ffulm-migrated legacy device.
|
regarding you can copy the patch from the FFAC repo to the tree, to remove old unused keys: The existing keys are only needed for opkg modules and surely don't work, but it is better to remove these entirely |
@maurerle thanks for clarifying! We don't use the upgrade for migration, but a custom rc.d path and can use a simple bash startup script for the cleanup. |
I updated the module to address the above cleanup, improved logging and cleaned up the code. The only open questions is how to migration For example:
@maurerle any ideas? |
This adds the migration script for FFUlm's custom OpenWrt-19.07 to FFMuc's latest legacy release (Gluon v2021.1.2+ / OpenWRT 19.07.) see https://gist.github.com/DasSkelett/8ffbd4573d260ca295adc4613d735f97 by DasSkelett
@DasSkelett @maurerle I won't be able to really working on this before the deadline anymore. The basic framework is in place and a basic migration is possible with this. Currently we only migration:
If there is more features (like the ones that were initially in @DasSkelett commit), you can add them to the existing S14 file or add an S15/S16/S17/S18 file (make sure it's executable In the stages S14 to S18 you will be able to access ALL configurations from ffulm, even the network, system, etc configurations by using the prefix For example: # shellcheck source=ffulm-migration/files/lib/gluon/ffulm-migration/migration-tools.sh
. /lib/gluon/ffulm-migration/migration-tools.sh
if what_i_need=$(uci -q get "${FFULM_PREFIX}network.whatever.you.need"); then
# do some magic
echo $what_i_need
else
migration_log ffulm-migration warn "Failed to find 'what I needed'"
fi Open ToDos
|
Removing to reduce image size
Eine kleine Test-Checkliste war ungefähr:
This PR is ready from my side. |
Should we add the schedules sysupgrade package before merging? |
See https://github.com/freifunkMUC/gluon-packages/tree/main/ffulm-migration
seems like I need to create a PR to get the firmware bakery running.