From 4411781c8394a958bae31355ccd608ae6812739b Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Tue, 9 Jun 2026 10:00:40 +0200 Subject: [PATCH] fix(mtda): use correct default constant in usbf storage A similar fix has been applied to the qemu storage in b02521ff. Fixes: bba9ae67 ("feat(usbf): auto-create file if not available") Signed-off-by: Felix Moessbauer --- mtda/storage/usbf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtda/storage/usbf.py b/mtda/storage/usbf.py index 33b23a4c..31ea8683 100644 --- a/mtda/storage/usbf.py +++ b/mtda/storage/usbf.py @@ -81,7 +81,7 @@ def configure(self, conf): if not os.path.exists(self.user_file): sparse = pathlib.Path(self.user_file) sparse.touch() - os.truncate(str(sparse), CONSTS.IMAGE_FILESIZE) + os.truncate(str(sparse), CONSTS.DEFAULTS.IMAGE_FILESIZE) if self.user_device is None and self.user_file is None: raise RuntimeError("shared storage device/file not defined!")