mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
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:
parent
ee3ff9ac01
commit
bd3430fcf0
@ -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"],
|
||||
)
|
||||
|
@ -49,6 +49,7 @@ mkosi_image(
|
||||
],
|
||||
extra_trees = [
|
||||
"//image:sysroot_tar",
|
||||
"//image:cryptsetup_closure",
|
||||
],
|
||||
local_mirror = ["@mkosi_rpms//:repo"],
|
||||
mkosi_conf = "mkosi.conf",
|
||||
|
@ -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"],
|
||||
|
@ -2,5 +2,5 @@
|
||||
Type=esp
|
||||
Format=vfat
|
||||
CopyFiles=/efi:/
|
||||
SizeMinBytes=256M
|
||||
SizeMaxBytes=512M
|
||||
SizeMinBytes=512M
|
||||
SizeMaxBytes=1024M
|
||||
|
Loading…
Reference in New Issue
Block a user