[elbe-devel] [PATCH 09/11] rfs: debootstrap always into clean target dir

Manuel Traut manut at linutronix.de
Mon Jan 29 13:21:08 CET 2018


deboostraping causes errors if running on an existing filesystem.
Ensure to run on an empty directory.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/rfs.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elbepack/rfs.py b/elbepack/rfs.py
index 111408b1..4916e063 100644
--- a/elbepack/rfs.py
+++ b/elbepack/rfs.py
@@ -99,6 +99,10 @@ class BuildEnv ():
         cleanup = False
         suite = self.xml.prj.text("suite")
 
+        # deboostraping causes errors if running on an existing filesystem
+        # ensure to run on an empty directory
+        self.rfs.rmtree("/")
+
         primary_mirror = self.xml.get_primary_mirror(
             self.rfs.fname('/cdrom/targetrepo'))
 
-- 
2.15.1




More information about the elbe-devel mailing list