constellation/image/BUILD.bazel
Malte Poll bd3430fcf0 image: provide runtime dependencies of cryptsetup in OS image.
This adds nix store paths to the initrd and sysroot of bootable Fedora images.
2023-12-01 09:35:33 +01:00

30 lines
720 B
Python

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")
filegroup(
name = "sysroot_tree",
srcs = glob(["sysroot-tree/**"]),
)
pkg_files(
name = "sysroot",
srcs = [":sysroot_tree"],
strip_prefix = strip_prefix.from_pkg() + "sysroot-tree",
visibility = ["//visibility:public"],
)
pkg_tar(
name = "sysroot_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"],
)