From 0c6ad6d06686b25c92d82477ba22f88320a9e6bf Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Wed, 7 Mar 2001 20:51:49 +0000 Subject: return errors --- lilo.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lilo.py') diff --git a/lilo.py b/lilo.py index d8dbdb706..2a8e7cdb0 100644 --- a/lilo.py +++ b/lilo.py @@ -447,9 +447,11 @@ class LiloConfiguration: lilo.write(instRoot + "/etc/lilo.conf", perms = perms) - iutil.execWithRedirect(instRoot + '/sbin/lilo' , - [ "lilo", "-r", instRoot ], - stdout = None) + # throw away stdout, catch stderr + str = iutil.execWithCapture(instRoot + '/sbin/lilo' , + [ "lilo", "-r", instRoot ], + catchfd = 2, closefd = 1) + return str def setDevice(self, device): if (type(device) == type((1,))): -- cgit