]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Install dmsetup in the initrd on Debian/Ubuntu
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 7 Jun 2023 14:40:04 +0000 (16:40 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 7 Jun 2023 14:56:49 +0000 (16:56 +0200)
On other distros, just installing systemd and udev is sufficient to
make verity work. On Debian and Ubuntu, we need to explicitly install
dmsetup as well to make sure verity works, so let's do that.

mkosi/__init__.py

index 68ae82f1234f96ea4b7e7a35409b7d8f9dd81240..ee27cd38d91ca4de1a951892d0b9c20172479976 100644 (file)
@@ -828,6 +828,7 @@ def install_unified_kernel(state: MkosiState, roothash: Optional[str]) -> None:
                 "--package", "systemd",
                 "--package", "udev",
                 "--package", "kmod",
+                *(["--package", "dmsetup"] if is_apt_distribution(state.config.distribution) else []),
                 "--output", f"{state.config.output}-initrd",
                 *(["--image-version", state.config.image_version] if state.config.image_version else []),
                 "--make-initrd", "yes",