cp -a /usr/lib/grub/i386-pc/* /boot/grub
fi
fi
+echo -n " grub1"
# create/update grub configuration
if [ -e /boot/grub/menu.lst ]; then
else
/usr/sbin/update-grub >/dev/null 2>&1 || true
fi
+echo -n " grub2"
# workaround grsec
if [ -x /sbin/chpax ]; then
- if [ -x /usr/sbin/grub-install ]; then
- chpax -ps /usr/sbin/grub-install
+ if [ -x /usr/sbin/grub ]; then
+ chpax -spmrx /usr/sbin/grub || true
fi
if [ -x /usr/sbin/grub-probe ]; then
- chpax -ps /usr/sbin/grub-probe
+ chpax -spmrx /usr/sbin/grub-probe || true
fi
fi
+echo -n " grub3"
# workaround execshield
SHIELD=$(sysctl -e -n kernel.exec-shield)
echo "CN: Do not reboot your server and report this to OTRS immediately!"
exit 1
fi
+echo -n " grub4"
# restore execshield state
if [ ! -z "$SHIELD" ]; then