mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
CRIT can edit image metadata but cannot convert the matching page payloads as one consistent image set. Changing either side alone can leave pagemap, inventory, and payload data incompatible. Add compress and decompress commands for checkpoint directories. Match CRIU's block encoding, raw threshold, alignment, image version, parent compatibility, and validation rules. Keep hugetlb and external-plugin ranges raw because CRIU cannot premap them generically, and add the Python LZ4 binding to supported dependencies. Stage every output before replacing any image. Preserve ownership, permissions, timestamps, xattrs, ACLs, and security metadata; create exclusive hard-link backups; synchronize directory changes; and defer terminating signals until the transaction has a definite result. Roll back the complete image set after a failure and retain the recoverable source if rollback or cleanup also fails. Reject symlinks, non-regular images, unsupported versions, inconsistent compression metadata, unknown modes, and truncated payloads. Recheck source identities before replacement so a changed pathname is not overwritten. Cover page and region images, parent chains, exceptional mappings, metadata preservation, signals, races, and rollback failures. Assisted-by: Codex:GPT-5 Assisted-by: Claude:claude-fable-5 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
43 lines
663 B
Bash
Executable file
43 lines
663 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
dnf install -y \
|
|
asciidoc \
|
|
binutils \
|
|
elfutils-libelf-devel \
|
|
gcc \
|
|
gdb \
|
|
git \
|
|
glibc-devel \
|
|
gnutls-devel \
|
|
iproute \
|
|
iptables \
|
|
libaio-devel \
|
|
libasan \
|
|
libbpf-devel \
|
|
libbsd-devel \
|
|
libcap-devel \
|
|
libdrm-devel \
|
|
lz4-devel \
|
|
libnet-devel \
|
|
libnl3-devel \
|
|
libselinux-devel \
|
|
libtraceevent-devel \
|
|
libtracefs-devel \
|
|
libuuid-devel \
|
|
make \
|
|
nftables \
|
|
pkg-config \
|
|
protobuf \
|
|
protobuf-c \
|
|
protobuf-c-devel \
|
|
protobuf-compiler \
|
|
protobuf-devel \
|
|
python-devel \
|
|
python3-importlib-metadata \
|
|
python3-lz4 \
|
|
python3-protobuf \
|
|
python3-pyyaml \
|
|
python3-setuptools \
|
|
python3-wheel \
|
|
rubygem-asciidoctor \
|
|
xmlto
|