]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Pass filename to oserror() in a few more cases
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 17 Sep 2024 15:03:04 +0000 (17:03 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 17 Sep 2024 18:51:43 +0000 (20:51 +0200)
mkosi/sandbox.py

index 57d122d1836c31757504adaad29090ed7a7c8fa4..581bbd7a1e36893712606fdb04128a9cccf8cd69 100755 (executable)
@@ -109,7 +109,7 @@ def statfs(path: str) -> int:
     buffer = (ctypes.c_long * 15)()
 
     if libc.statfs(path.encode(), ctypes.byref(buffer)) < 0:
-        oserror()
+        oserror(path)
 
     return int(buffer[0])
 
@@ -119,12 +119,12 @@ def mount(src: str, dst: str, type: str, flags: int, options: str) -> None:
     typeb = type.encode() if type else None
     optionsb = options.encode() if options else None
     if libc.mount(srcb, dst.encode(), typeb, flags, optionsb) < 0:
-        oserror()
+        oserror(dst)
 
 
 def umount2(path: str, flags: int = 0) -> None:
     if libc.umount2(path.encode(), flags) < 0:
-        oserror()
+        oserror(path)
 
 
 def cap_permitted_to_ambient() -> None: