diff options
author | Maxim Devaev <[email protected]> | 2023-03-05 17:28:45 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-05 17:28:45 +0200 |
commit | 7c7ac38bfed8485fd1928cc03025739b6a407d51 (patch) | |
tree | 3ec3bb4ab1050d597dbedfa249ecf6da453944ec /kvmd/validators | |
parent | b4fa35f05f2d5880b5c655f0be9d3d3871b3ce5f (diff) |
new msd fs structure
Diffstat (limited to 'kvmd/validators')
-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]: |