]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure /var/lib/dpkg/available exists when setting up apt
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 Apr 2024 10:43:21 +0000 (12:43 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 Apr 2024 11:45:03 +0000 (13:45 +0200)
Fixes #2610

mkosi/installer/apt.py

index 990110774cbc20e748f2ce1cf2519491357befe2..2b80173ec81821838f7e06ab0fafd2cd61b27725 100644 (file)
@@ -82,6 +82,8 @@ class Apt(PackageManager):
             (context.root / "var/lib/dpkg").mkdir(parents=True, exist_ok=True)
             (context.root / "var/lib/dpkg/status").touch()
 
+            (context.root / "var/lib/dpkg/available").touch()
+
         # We have a special apt.conf outside of pkgmngr dir that only configures "Dir::Etc" that we pass to APT_CONFIG
         # to tell apt it should read config files from /etc/apt in case this is overridden by distributions. This is
         # required because apt parses CLI configuration options after parsing its configuration files and as such we