diff options
Diffstat (limited to 'kvmd/validators/kvm.py')
-rw-r--r-- | kvmd/validators/kvm.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py index 600aa5de..a3e5c32d 100644 --- a/kvmd/validators/kvm.py +++ b/kvmd/validators/kvm.py @@ -41,7 +41,11 @@ def valid_atx_button(arg: Any) -> str: def valid_msd_image_name(arg: Any) -> str: - return valid_printable_filename(arg, name="MSD image name") # pragma: nocover + name = "MSD image name" + arg = valid_printable_filename(arg, name=name) + if arg.startswith(".__") or arg == "lost+found": + raise_error(arg, name) + return arg def valid_info_fields(arg: Any, variants: set[str]) -> set[str]: |