core98: remove wrong grub.cfg only if it was empty.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2016-02-17 21:57:00 +01:00
parent 5a9039f132
commit 2e51e8607e

View File

@@ -39,7 +39,10 @@ extract_files
# Bugfixes for core96 updater bugs...
if [ -e /boot/grub/grub.conf ]; then
# legacy grub config on xen or citrix conflicts with grub2 config
rm /boot/grub/grub.cfg
# and core96 contains an empty file
if [ ! -s /boot/grub/grub.cfg ]
rm /boot/grub/grub.cfg
fi
fi
if [ -e /boot/grub/grub.cfg ]; then