Skip to content

[ubports/focal] workaround-session-migration-mtime: fix overlay permission

Backport: !121 (merged)

Well... overlayfs will take not only the mtime from the top-most dir, but also the permission from it. This means the 444 (r--r--r--) will prevent anyone from stat'ing migration scripts inside it. Change it to 555 (r-xr-xr-x) to allow session-migration to stat() the individual files and get mtime from them.

For some users, this means that the scripts will run after they have been using the system for some time. We will have to take a special care to prevent the migration scripts from overwriting existing data...

Fixes: ubports/ubuntu-touch#2177

Merge request reports

Loading