From 2e51e8607e3b45b41a984f95c81c257a41107cff Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 17 Feb 2016 21:57:00 +0100 Subject: [PATCH] core98: remove wrong grub.cfg only if it was empty. Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/98/update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2