%global uke_kernel_version 7.3.5 %global uke_kernel_release 13 Name: uke-verified-rescue Version: %{uke_kernel_version} Release: %{uke_kernel_release}%{?dist} Summary: Read-only Fedora recovery snapshot for Uke License: MIT URL: https://github.com/MCC45TR/uke-fedora-builder Source0: %{name}-%{version}-%{uke_kernel_release}.tar.zst ExclusiveArch: aarch64 BuildRequires: bash jq coreutils gawk veritysetup zstd e2fsprogs Requires: senemos-uke-linux-kernel-mainline-core = %{version}-%{release} Requires: bash jq coreutils gawk rpm veritysetup %description Fedora recovery filesystem with a SHA-256 dm-verity tree. Its RPM signature authenticates the recipe, including the recovery root digest, the matching kernel and the complete boot-wrapper digests. The demand-only recovery mapper reads the packaged snapshot. Installation does not write UFS partitions, arm boot slots or replace the independent Fastboot rescue. The license is for the Uke integration. The Fedora filesystem preserves the license files and package inventory of its original Fedora packages. %prep %setup -q -n %{name}-%{version}-%{uke_kernel_release} %install install -Dm755 verified-rescue.sh %{buildroot}%{_bindir}/uke-verified-rescue install -Dm644 recipe.json %{buildroot}%{_datadir}/%{name}/recipe.json mkdir -p %{buildroot}%{_datadir}/%{name} cp --sparse=always rescue.verity %{buildroot}%{_datadir}/%{name}/rescue.verity chmod 0644 %{buildroot}%{_datadir}/%{name}/rescue.verity %check jq -e --arg evr '%{version}-%{release}' '.kernel_rpm_evr==$evr' recipe.json >/dev/null bash verified-rescue.sh verify '%{buildroot}%{_datadir}/%{name}/rescue.verity' '%{buildroot}%{_datadir}/%{name}/recipe.json' %files %license LICENSE %{_bindir}/uke-verified-rescue %{_datadir}/%{name}/