install: verify pmaports branch supporting fs (MR 2011)

Do not attempt to install with a filesystem that is not supported by the
initramfs code in the checked out pmaports branch.

Previously we would have increased the pmaports.cfg version and require
that new version by pmbootstrap, however this will break compatibility
with release branches where we won't roll out this feature (v20.05).
Therefore don't change the version, but add a new
"supported_root_filesystems" key to pmaports.cfg, which defaults to
"ext4".

Related: https://postmarketos.org/pmaports.cfg
This commit is contained in:
Oliver Smith 2021-03-19 01:30:30 +01:00
parent 807d7019f8
commit 8df7514b8e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 21 additions and 2 deletions

View file

@ -308,6 +308,9 @@ def install(args):
" packages found. Consider 'pmbootstrap zap -p'"
" to delete them.")
# Verify that the root filesystem is supported by current pmaports branch
pmb.install.get_root_filesystem(args)
pmb.install.install(args)