2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Add a shorthand '-' to say 'mount to same path as outside'

This commit is contained in:
Jarrod Johnson 2021-09-02 11:29:40 -04:00
parent bf017b55e1
commit fbef6442d5

View File

@ -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)