[fstab] Warn when the mount options end up weird

Cherry-picked from 3.3, but only half of it applies.
This commit is contained in:
Adriaan de Groot 2022-06-11 00:30:32 +02:00
parent 8b44eef002
commit 700f2a6af3

View File

@ -425,6 +425,7 @@ def run():
# We rely on mount_options having a default; if there wasn't one,
# bail out with a meaningful error.
if not mount_options:
libcalamares.utils.warning("No mount options defined, {!s} partitions".format(len(partitions)))
return (_("Configuration Error"),
_("No <pre>{!s}</pre> configuration is given for <pre>{!s}</pre> to use.")
.format("mountOptions", "fstab"))