]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core98: remove wrong grub.cfg only if it was empty.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 17 Feb 2016 20:57:00 +0000 (21:57 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 17 Feb 2016 20:57:00 +0000 (21:57 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/98/update.sh

index ec9c1aaa691fe8c6c8f92064c0754b590fc20f59..89d32450ee39db1b14a23e9e80c84abf99f1cd33 100644 (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