summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2014-08-26 00:46:28 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2014-08-26 01:35:07 +0200
commit22c8569f53fbb3117aa2226ac1890ebf044600f2 (patch)
tree4f7237973424fa1ad8ccd207a11d482f1c51be8b
parent50cd46d209e8b071a62b31c704869e707a84d202 (diff)
downloadvyos-live-build-22c8569f53fbb3117aa2226ac1890ebf044600f2.tar.gz
vyos-live-build-22c8569f53fbb3117aa2226ac1890ebf044600f2.zip
Using own stagefile for init.
-rwxr-xr-xcomponents/init3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/init b/components/init
index 639ada82d..d9687063f 100755
--- a/components/init
+++ b/components/init
@@ -242,7 +242,7 @@ def main():
## Creating configuration directory
# stagefile
- if os.path.isdir('.build'):
+ if os.path.exists('.build/init'):
if verbose:
print('I: configuration directory already initialized - nothing to do')
@@ -514,6 +514,7 @@ def main():
## stagefile
os.makedirs('.build', exist_ok=True)
+ open('.build/init', 'w').close()
if __name__ == '__main__':