common/rc: improve checks for YP/NIS
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 29 Mar 2018 15:27:25 +0000 (11:27 -0400)
committerEryu Guan <guaneryu@gmail.com>
Sun, 8 Apr 2018 07:47:22 +0000 (15:47 +0800)
commit43374a62325ee6256b0e2c81489807c136e71a51
tree8bf78885d19b2d163952b018e257872e46b5f292
parent03d77eb7539be1466b1dd954c86e0b67bfd37a79
common/rc: improve checks for YP/NIS

At the 2018 spring NFS BAT, we have a number of systems that return
a valid string from `domainaname`, but don't have the ypcat binary.
If we don't have the yp-tools package installed, we're not going to
be able to use ypcat, so check for it and bail out.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc