[fstab, mount] Warn when the mount options end up weird
This commit is contained in:
parent
57d978b82d
commit
2f3fb4a387
@ -407,6 +407,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_list:
|
||||
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"))
|
||||
|
@ -351,6 +351,9 @@ def run():
|
||||
except ZfsException as ze:
|
||||
return _("zfs mounting error"), ze.message
|
||||
|
||||
if not mount_options_list:
|
||||
libcalamares.utils.warning("No mount options defined, {!s} partitions, {!s} mountable".format(len(partitions), len(mountable_partitions)))
|
||||
|
||||
libcalamares.globalstorage.insert("rootMountPoint", root_mount_point)
|
||||
libcalamares.globalstorage.insert("mountOptionsList", mount_options_list)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user