diff --git a/build-tools/patch-iso-debian b/build-tools/patch-iso-debian
index 42cb8193..b2daa695 100755
--- a/build-tools/patch-iso-debian
+++ b/build-tools/patch-iso-debian
@@ -4,16 +4,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
-# This script takes as input an ISO and one or more patches
-# and generates as output an ISO with the following changes:
-#
-# - Contains only the latest ostree commit from the input ISO
-# - ISO has a "patches" folder with the patches' metadata files.
-# This folder is processed by kickstart during install, so that
-# 'sw-patch query' has access to this info.
-#
-# The intent is for the system to have record of the patches that are
-# already pre-installed in the system.
+# Script to generate pre-patched ISOs.
#
BUILD_TOOLS_DIR="$(dirname "$0")"
@@ -21,21 +12,40 @@ BUILD_TOOLS_DIR="$(dirname "$0")"
# shellcheck source="./build-tools/image-utils.sh"
source "${BUILD_TOOLS_DIR}/image-utils.sh"
-# Define MY_REPO, which is the path to the 'root' repo. Eg.: $REPO_ROOT/cgcs_root
-# Value is used to locate the following file for ISO signing:
-# ${MY_REPO}/build-tools/signing/dev-private-key.pem
-if [ -z "${MY_REPO}" ]; then
- MY_REPO="$(dirname "${BUILD_TOOLS_DIR}")"
-fi
+usage="
+Script to generate pre-patched ISOs.
+
+Inputs:
+- an ISO
+- one or more patches
+- ostree repo (assumed to be in \${DEPLOY_DIR}/ostree_repo/
+ or \${STX_BUILD_HOME}/localdisk/deploy/ostree_repo/)
+
+It generates as output an ISO with the following changes:
+
+- Contains only the latest ostree commit from the input ostree repo
+- ISO has a 'patches' folder with the patches' metadata files.
+ This folder is processed by kickstart during install, so that
+ 'sw-patch query' has access to this info to list the patches
+ (each of them refers to one of the older commits in the ostree repo)
+
+The intent is for the system to have record of the patches that are
+already pre-installed in the system.
+
+Usage:
+ $(basename "$0") -i -o