From: Justin Cinkelj <[email protected]>
Committer: Nadav Har'El <[email protected]>
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 <[email protected]>
Message-Id: <[email protected]>

---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to