2014-08-21 15:14:41 |
Régis Rouet |
description |
When you access/use the omelette part from another server _ LXC host, sshfs _ chances are that the symlinks are broken.
If you don't mind the links to be broken on the server executing omelette, you want to make them so they are valid from where you use them.
This can be done quickly with a patch on omelette/__init__.py like :
126c126
< src = os.path.join(dist.location, *name_parts)
---
> src = '/data/ulxc/t2/rootfs' + os.path.join(dist.location, *name_parts)
128c128
< if os.path.exists(dst):
---
> if os.path.lexists(dst):
A recipe option to obtain the same result would be nice. |
When you access/use the omelette part from another server _ LXC host, sshfs _ chances are that the symlinks are broken.
If you don't mind the links to be broken on the server executing omelette, you want to make them so they are valid from where you use them.
This can be done quickly with a patch on omelette/__init__.py like :
@@ -123,9 +123,9 @@
if name.startswith('.'):
continue
name_parts = ns_parts + (name,)
- src = os.path.join(dist.location, *name_parts)
+ src = '/data/ulxc/t2/rootfs' + os.path.join(dist.location, *name_parts)
dst = os.path.join(location, *name_parts)
- if os.path.exists(dst):
+ if os.path.lexists(dst):
continue
symlink(src, dst)
create_namespaces(namespaces)
A recipe option to obtain the same result would be nice. |
|