File tree Expand file tree Collapse file tree 6 files changed +25
-12
lines changed
Expand file tree Collapse file tree 6 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # The mkosi sandbox environment should have a debian backports source list
4+ # that matches the archive timestamp of the main release.
5+ # See https://github.com/systemd/mkosi/issues/1755
6+ MIRROR=$( jq -r .Mirror /work/config.json)
7+ if [ " $MIRROR " = " null" ]; then
8+ MIRROR=" http://deb.debian.org/debian"
9+ fi
10+
11+ cat > " $SRCDIR /mkosi.builddir/debian-backports.sources" << EOF
12+ Types: deb deb-src
13+ URIs: $MIRROR
14+ Suites: ${RELEASE} -backports
15+ Components: main
16+ Enabled: yes
17+ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
18+ EOF
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Release=trixie
55
66[Build]
77PackageCacheDirectory=mkosi.cache
8+ SandboxTrees=mkosi.builddir/debian-backports.sources:/etc/apt/sources.list.d/debian-backports.sources
89Environment=KERNEL_IMAGE KERNEL_VERSION
910WithNetwork=true
1011
@@ -23,6 +24,7 @@ FinalizeScripts=base/debloat.sh
2324PostInstallationScripts=base/debloat-systemd.sh
2425PostInstallationScripts=base/efi-stub.sh
2526BuildScripts=kernel/mkosi.build
27+ SyncScripts=base/add-backports.sh
2628
2729CleanPackageMetadata=true
2830Packages=kmod
Original file line number Diff line number Diff line change 7171 qemu-utils
7272 parted
7373 unzip
74+ jq
7475 ]
7576 ++ [ reprepro ] ;
7677 } ;
9293 nativeBuildInputs = [ ( mkosi system ) measured-boot measured-boot-gcp ] ;
9394 shellHook = ''
9495 mkdir -p mkosi.packages mkosi.cache mkosi.builddir ~/.cache/mkosi
96+ touch mkosi.builddir/debian-backports.sources
9597 '' ;
9698 } ;
9799 } ) [ "x86_64-linux" "aarch64-linux" ] ) ;
Original file line number Diff line number Diff line change @@ -4,20 +4,12 @@ set -euxo pipefail
44
55ENV_YAML=" $SRCDIR /l2/_op_rbuilder/mkosi.extra/etc/flashbots/op-rbuilder.yaml"
66
7- RUST_VERSION=$( mkosi-chroot yq -r ' .rust.version' < " $ENV_YAML " )
8-
97OP_RBUILDER_REF=$( mkosi-chroot yq -r ' .op_rbuilder.git_reference' < " $ENV_YAML " )
108TDX_QUOTE_PROVIDER_REF=$( mkosi-chroot yq -r ' .tdx_quote_provider.git_reference' < " $ENV_YAML " )
119RPROXY_REF=$( mkosi-chroot yq -r ' .rproxy.git_reference' < " $ENV_YAML " )
1210RPROXY_FEATURES=$( mkosi-chroot yq -r ' .rproxy.features // ["default"] | sort | join(",")' < " $ENV_YAML " )
1311NODE_HEALTHCHECKER_REF=$( mkosi-chroot yq -r ' .node_healthchecker.git_reference' < " $ENV_YAML " )
1412
15- export RUSTUP_HOME=" /rustup"
16- export CARGO_HOME=" /cargo"
17- mkosi-chroot rustup toolchain install $RUST_VERSION
18- mkosi-chroot rustup default $RUST_VERSION
19- export PATH=" $CARGO_HOME /bin:$PATH "
20-
2113source scripts/make_git_package.sh
2214source scripts/build_rust_package.sh
2315
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ Packages=libtss2-dev
1010 sudo
1111 unzip
1212
13- BuildPackages=golang
13+ BuildPackages=cargo/trixie-backports
14+ golang
1415 libssl-dev
15- rustup
16+ rustc/trixie-backports
1617 unzip
1718 yq
Original file line number Diff line number Diff line change 1- rust :
2- version : 1.91.1
31node_healthchecker :
42 git_reference : v0.1.11
53op_rbuilder :
You can’t perform that action at this time.
0 commit comments