From 7c7ac38bfed8485fd1928cc03025739b6a407d51 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 5 Mar 2023 17:28:45 +0200 Subject: new msd fs structure --- kvmd/validators/kvm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kvmd/validators/kvm.py') 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]: -- cgit v1.2.3