From: Justin Cinkelj <justin.cink...@xlab.si>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

ramfs: strip ! from usr.manifest filenames

usr.manifest can contain lines like "/osv-path: !/host-path", when
"/host-path" is a symlink. We need to remove the ! before searching
host filesystem for the file.

Fixes #879

Signed-off-by: Justin Cinkelj <justin.cink...@xlab.si>
Message-Id: <20170608165411.14645-1-justin.cink...@xlab.si>

---
diff --git a/scripts/mkbootfs.py b/scripts/mkbootfs.py
--- a/scripts/mkbootfs.py
+++ b/scripts/mkbootfs.py
@@ -30,6 +30,8 @@ def expand(items):
             yield (name, hostname)

 def unsymlink(f):
+    if f.startswith('!'):
+        f = f[1:]
     try:
         link = os.readlink(f)
         if link.startswith('/'):

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to