From: Daan De Meyer Date: Sat, 15 Apr 2023 18:12:59 +0000 (+0200) Subject: Make sure we create /var/lib/dpkg with the right access mode X-Git-Tag: v15~246^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5498ec690f43fdee6e56093a4417248d054b4ec0;p=thirdparty%2Fmkosi.git Make sure we create /var/lib/dpkg with the right access mode --- diff --git a/mkosi/distributions/debian.py b/mkosi/distributions/debian.py index a3b00b9d1..9c33ddece 100644 --- a/mkosi/distributions/debian.py +++ b/mkosi/distributions/debian.py @@ -160,7 +160,9 @@ def invoke_apt( state.workspace.joinpath("apt").mkdir(exist_ok=True) state.workspace.joinpath("apt/log").mkdir(exist_ok=True) - state.root.joinpath("var/lib/dpkg").mkdir(exist_ok=True) + state.root.joinpath("var").mkdir(mode=0o755, exist_ok=True) + state.root.joinpath("var/lib").mkdir(mode=0o755, exist_ok=True) + state.root.joinpath("var/lib/dpkg").mkdir(mode=0o755, exist_ok=True) state.root.joinpath("var/lib/dpkg/status").touch() config_file = state.workspace / "apt/apt.conf"