image: provide runtime dependencies of cryptsetup in OS image.

This adds nix store paths to the initrd and sysroot of bootable Fedora images.
This commit is contained in:
Malte Poll 2023-11-23 17:53:57 +01:00
parent ee3ff9ac01
commit bd3430fcf0
4 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,4 @@
load("@aspect_bazel_lib//lib:copy_file.bzl", "copy_file")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
@ -18,3 +19,11 @@ pkg_tar(
srcs = [":sysroot"],
visibility = ["//visibility:public"],
)
copy_file(
name = "cryptsetup_closure",
src = "@cryptsetup_x86_64-linux//:closure.tar",
out = "cryptsetup_closure.tar",
allow_symlink = True,
visibility = ["//visibility:public"],
)

View File

@ -49,6 +49,7 @@ mkosi_image(
],
extra_trees = [
"//image:sysroot_tar",
"//image:cryptsetup_closure",
],
local_mirror = ["@mkosi_rpms//:repo"],
mkosi_conf = "mkosi.conf",

View File

@ -14,6 +14,7 @@ mkosi_image(
],
extra_trees = [
"//image:sysroot_tar",
"//image:cryptsetup_closure",
"//disk-mapper/cmd:disk-mapper-package.tar",
],
local_mirror = ["@mkosi_rpms//:repo"],

View File

@ -2,5 +2,5 @@
Type=esp
Format=vfat
CopyFiles=/efi:/
SizeMinBytes=256M
SizeMaxBytes=512M
SizeMinBytes=512M
SizeMaxBytes=1024M