Closes #97. Implement IS_OSPROBER

This commit is contained in:
Benoît S. 2019-06-21 10:59:59 +02:00
parent 8b2d789830
commit 2c8fc41c01

View file

@ -1121,6 +1121,14 @@ check_evobackup_incs() {
fi
}
check_osprober() {
if is_installed os-prober; then
if is_installed qemu-kvm; then
failed "IS_OSPROBER" "Removal of this package is recommended as it can cause serious issue on KVM server"
fi
fi
}
main() {
# Default return code : 0 = no error
RC=0
@ -1241,6 +1249,7 @@ main() {
test "${IS_MELTDOWN_SPECTRE:=1}" = 1 && check_meltdown_spectre
test "${IS_OLD_HOME_DIR:=1}" = 1 && check_old_home_dir
test "${IS_EVOBACKUP_INCS:=1}" = 1 && check_evobackup_incs
test "${IS_OSPROBER:=1}" = 1 && check_osprober
fi
#-----------------------------------------------------------