[elbe-devel] [PATCH v1 8/8] Check with 'lexist' for "/rfs/etc"
dion at linutronix.de
dion at linutronix.de
Wed May 22 15:33:48 CEST 2019
From: Olivier Dion <dion at linutronix.de>
Not sure if that makes sens. Never saw a system with "/etc"
as a symlink.
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/efilesystem.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index 3422b6fc..42e3d555 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -298,8 +298,8 @@ class TargetFs(ChRootFilesystem):
self.image_packers = {}
def write_fstab(self, xml):
- if not self.exists("etc"):
- self.mkdir("etc")
+ if not self.lexists("etc"):
+ self.mkdir(self.realpath("etc"))
f = self.open("etc/fstab", "w")
if xml.tgt.has("fstab"):
--
2.11.0
More information about the elbe-devel
mailing list