From fbef6442d5057f11d6be6f62dba4b1e368abd686 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 2 Sep 2021 11:29:40 -0400 Subject: [PATCH] Add a shorthand '-' to say 'mount to same path as outside' --- imgutil/imgutil | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgutil/imgutil b/imgutil/imgutil index 8c458ad3..679f1290 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -717,6 +717,8 @@ def _mount_constrained_fs(args, installroot): for v in args.volume: if ':' in v: src, dst = v.split(':') + if dst == '-': + dst = src while dst and dst[0] == '/': dst = dst[1:] dst = os.path.join(installroot, dst)