Skip to content

Commit

Permalink
image: provide runtime dependencies of cryptsetup in OS image.
Browse files Browse the repository at this point in the history
This adds nix store paths to the initrd and sysroot of bootable Fedora images.
  • Loading branch information
malt3 committed Nov 28, 2023
1 parent 74cbf9f commit 2afd2f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions image/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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")

Expand All @@ -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"],
)
1 change: 1 addition & 0 deletions image/base/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ mkosi_image(
],
extra_trees = [
"//image:sysroot_tar",
"//image:cryptsetup_closure",
],
local_mirror = ["@mkosi_rpms//:repo"],
mkosi_conf = "mkosi.conf",
Expand Down
1 change: 1 addition & 0 deletions image/initrd/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions image/system/mkosi.repart/00-esp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
Type=esp
Format=vfat
CopyFiles=/efi:/
SizeMinBytes=256M
SizeMaxBytes=512M
SizeMinBytes=512M
SizeMaxBytes=1024M

0 comments on commit 2afd2f5

Please sign in to comment.