summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-26 17:02:19 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-02 17:58:47 +0000
commit4db7263748781e139dd18cc999b056fc36a5c8af (patch)
tree6ddc8d0284aaeac4af7f5b4eea8999fc41dc0a1f
parentf073462e320d10a3d2d6f277237bd1d804ee3def (diff)
downloaddefinitions-4db7263748781e139dd18cc999b056fc36a5c8af.tar.gz
Use os.execl to be able to do things later like exec /sbin/init
-rwxr-xr-xinstaller/installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/installer.py b/installer/installer.py
index cfca5bb6..7e1033b8 100755
--- a/installer/installer.py
+++ b/installer/installer.py
@@ -60,7 +60,7 @@ class BaserockInstaller():
except BaseException, e:
print "Something failed, opening shell..."
print "Once you have finished, use `reboot -f`"
- os.system('/bin/sh')
+ os.execl('/bin/sh', 'sh')
def validate_install_values(self, disk_dest, rootfs):
if not self.deploying_to_device(disk_dest):