mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Add a shorthand '-' to say 'mount to same path as outside'
This commit is contained in:
parent
bf017b55e1
commit
fbef6442d5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user