 i think we should simplify this packages  mount nfs usr sbin mount  for package in packages try self  execute package  check exit code false  run as root true except oserror as exc if exc errno errno enoent raise log error  le s is not installed package else msg utils build or str packages s needs to be installed raise exception nfsexception msg 