From 4a5e20735de870756d8a05cb9679c716dede28d7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 13 Aug 2026 13:30:12 -0400 Subject: [PATCH] Normalize scratchdir globally There remain issues where relative path can screw up the transient mounts. Normalize it to be consistent using absolute path every time. --- imgutil/imgutil | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgutil/imgutil b/imgutil/imgutil index 118e9b29..25a99860 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -1046,6 +1046,8 @@ def main(): capturep.add_argument('node', help='Node to capture image from') capturep.add_argument('profilename', help='Profile name for captured image') args = parser.parse_args() + if args.scratchdir: + args.scratchdir = os.path.abspath(args.scratchdir) if not args or not args.subcommand: parser.print_usage() sys.exit(1)