Supress expected error in TryLoadAtapiix() by setting chk_err=False for lsmod

This commit is contained in:
Eric Gable
2013-09-18 13:14:40 -07:00
parent 1cbc7575b6
commit a3c53eebef
+1 -1
View File
@@ -3365,7 +3365,7 @@ class Agent(Util):
modloaded=False
retcode,krn=RunGetOutput('uname -r')
krn_pth='/lib/modules/'+krn.strip('\n')+'/kernel/drivers/ata/ata_piix.ko'
if Run('lsmod | grep ata_piix') == 0 :
if Run("lsmod | grep ata_piix",chk_err=False) == 0 :
Log("Module " + krn_pth + " driver for ATAPI CD-ROM is already present.")
return 0
if retcode: