board/MynaPlayer odyssey: add pre-init script to setup overlay filesystem. #23

Merged Jookia merged 1 commit into LuminaSensum:unstable from LuminaSensum:WIP_preinit on 19 Sep
@xogium xogium commented on 7 Sep

This adds a pre-init script that is ran before systemd. This scripts prepares the system so that the rootfs will be left unaltered, but combines it with a writable ext4 filesystem, where data can be stored. Both rootfs use the same overlay, which makes it possible to preserve data while overriding one of the rootfs during an upgrade.

@Jookia Jookia commented on 7 Sep

Looks good! Though I'm going to send you a test script to work around my pivot_root hack here since I was reading the wrong documentation.

Another issue is that people can't easily 'reset' changes to the rootfs (you had an issue with this earlier)- maybe we should expose the upper/lower overlay directories instead of hiding them? We could mount them as read-only which should protect them against rm -rf ?

Could you update this to use the latest script? Then I'll merge

@Jookia Jookia referenced the pull request on 19 Sep

board/MynaPlayer odyssey: add pre-init script to setup overlay filesystem.

@Jookia Jookia merged commit 8ec52a2 into unstable from WIP_preinit on 19 Sep
@Jookia Jookia closed this pull request on 19 Sep
Labels

Priority
default
Milestone
No milestone
Assignee
No one
2 participants
@xogium @Jookia