]> git.siccegge.de Git - forks/vmdebootstrap.git/blobdiff - vmdebootstrap
Use the usual cliapp.runcmd and not our bastard version
[forks/vmdebootstrap.git] / vmdebootstrap
index 93bb2c6bce46b44760450e181cb79d84c16296da..cef188fd0fb77317557dba29b2ae2b8b79a949d4 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
-# Copyright 2011  Lars Wirzenius
+# Copyright 2011, 2012  Lars Wirzenius
+# Copyright 2012  Codethink Limited
 # 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -353,7 +354,8 @@ append initrd=%(initrd)s root=UUID=%(uuid)s ro quiet %(kserial)s
         script = self.settings['customize']
         if script:
             self.message('Running customize script %s' % script)
-            self.runcmd([script, rootdir])
+            with open('/dev/tty', 'w') as tty:
+                cliapp.runcmd([script, rootdir], stdout=tty, stderr=tty)
 
 
 if __name__ == '__main__':