Merge "Add ostree checksum to factory backup"

This commit is contained in:
Zuul
2025-07-22 14:38:31 +00:00
committed by Gerrit Code Review

View File

@@ -84,6 +84,12 @@ log_info "Copying $OSTREE_REPO_SRC to $OSTREE_REPO_DEST"
cp -r "$OSTREE_REPO_SRC" "$OSTREE_REPO_DEST"
check_rc_die $? "Unable to backup $OSTREE_REPO_SRC"
# Generate ostree_repo directory checksum and copy it to the factory backup dir
log_info "Generating ostree_repo checksum file..."
find $OSTREE_REPO_SRC -type f -exec md5sum {} + | LC_ALL=C sort | \
md5sum | awk '{ print $1; }' > "${BACKUP_DIR}/.ostree_repo_checksum"
check_rc_die $? "Unable to generate ostree_repo checksum file"
# Copy miniboot.cfg to factory backup dir
log_info "Copying $MINIBOOT_CFG_SRC to $MINIBOOT_CFG_DEST"
cp "$MINIBOOT_CFG_SRC" "$MINIBOOT_CFG_DEST"