]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure grub fonts directory exists
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Dec 2023 18:40:24 +0000 (19:40 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Dec 2023 18:53:46 +0000 (19:53 +0100)
mkosi/__init__.py

index 7a1376e759f41c08e9122b4921e12a4778741b06..74e2ff4c5136c7f9d9d15a2edae5001c5d926c15 100644 (file)
@@ -1167,7 +1167,8 @@ def prepare_grub_bios(state: MkosiState, partitions: Sequence[Partition]) -> Non
     shutil.copy2(directory / "boot.img", dst)
 
     dst = state.root / "efi" / prefix / "fonts"
-    dst.mkdir()
+    with umask(~0o700):
+        dst.mkdir(exist_ok=True)
 
     for prefix in ("grub", "grub2"):
         unicode = state.root / "usr/share" / prefix / "unicode.pf2"