summaryrefslogtreecommitdiff
path: root/ybd.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-07-07 11:52:41 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-07-07 11:52:41 +0000
commit4883d557fd39604d89ffd832152d1758d4740464 (patch)
treee648fb2bf9423fc09b32f43d0aecda673827633e /ybd.py
parentbd999d9d68ae9664d5ffc2482bf100d37241db93 (diff)
downloadybd-4883d557fd39604d89ffd832152d1758d4740464.tar.gz
Add warning that chroot builds may overwrite system
Diffstat (limited to 'ybd.py')
-rwxr-xr-xybd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ybd.py b/ybd.py
index e91b3b2..22ace91 100755
--- a/ybd.py
+++ b/ybd.py
@@ -40,6 +40,9 @@ with app.timer('TOTAL'):
sandbox.executor = sandboxlib.executor_for_platform()
app.log(app.settings['target'], 'Sandbox using %s' % sandbox.executor)
+ if sandboxlib.chroot == sandbox.executor:
+ app.log(app.settings['target'], 'WARNING: rogue builds in a chroot ' +
+ 'sandbox may overwrite your system')
if app.settings.get('instances'):
app.spawn()