]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
tree: Fix maybe_make_nocow() 3517/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 16 Feb 2025 14:20:59 +0000 (15:20 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 16 Feb 2025 14:20:59 +0000 (15:20 +0100)
mkosi/tree.py

index d3f27204487009519921cea4c38a3b5490e246de..59307605d22198deb2450d89525c67eb2fb80e87 100644 (file)
@@ -81,7 +81,7 @@ def preserve_target_directories_stat(src: Path, dst: Path) -> Iterator[None]:
 
 def maybe_make_nocow(path: Path) -> None:
     try:
-        chattr(os.fspath(path), lsattr(os.fspath(path)))
+        chattr(os.fspath(path), lsattr(os.fspath(path)) | FS_NOCOW_FL)
     except OSError as e:
         if e.errno not in (errno.ENOTTY, errno.EOPNOTSUPP, errno.EINVAL):
             raise