Blame tests/p_grub/grub_dir_layout_test.sh

Athmane Madjoudj 6a3232
#!/bin/sh
Athmane Madjoudj 6a3232
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 6a3232
# Note: This was a known issue in CentOS 6.0
Athmane Madjoudj 6a3232
# See: http://bugs.centos.org/view.php?id=4995
Athmane Madjoudj 6a3232
Athmane Madjoudj 6a3232
t_Log "Running $0 -  check that grub file layout is the same with upstream."
Athmane Madjoudj 6a3232
7e6393
if [ "$centos_ver" = "7" ] ; then
7e6393
  t_Log "el7 comes with grub2, skipping grub test ..."
7e6393
  t_CheckExitStatus 0
7e6393
  exit 0
7e6393
fi
7e6393
7e6393
Athmane Madjoudj 6a3232
ARCH=`uname -m | sed 's/i6/i3/'`
Athmane Madjoudj 6a3232
Athmane Madjoudj 6a3232
[[ $( ls /usr/share/grub/ | wc -l ) -eq 1 ]] && \
Athmane Madjoudj 6a3232
ls /usr/share/grub/ | grep -q "$ARCH-redhat"
Athmane Madjoudj 6a3232
Athmane Madjoudj 6a3232
t_CheckExitStatus $?