From: Arne Fitzenreiter Date: Wed, 17 Feb 2016 20:57:00 +0000 (+0100) Subject: core98: remove wrong grub.cfg only if it was empty. X-Git-Url: http://git.ipfire.org/?p=people%2Fjschlag%2Fipfire-2.x.git;a=commitdiff_plain;h=2e51e8607e3b45b41a984f95c81c257a41107cff core98: remove wrong grub.cfg only if it was empty. Signed-off-by: Arne Fitzenreiter --- diff --git a/config/rootfiles/core/98/update.sh b/config/rootfiles/core/98/update.sh index ec9c1aaa69..89d32450ee 100644 --- a/config/rootfiles/core/98/update.sh +++ b/config/rootfiles/core/98/update.sh @@ -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