]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
core90: fix grub.cfg update on xen hvm installations.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 20 May 2015 09:03:42 +0000 (11:03 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 20 May 2015 09:03:42 +0000 (11:03 +0200)
config/rootfiles/core/90/update.sh

index fa67f6b347aef7e5804c6c49cf37095f4316d9b6..34dacf1134654caab5f8ef8a23e6c0bc26175717 100644 (file)
@@ -225,22 +225,9 @@ if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
        /etc/init.d/ipsec start
 fi
 
-case "$(uname -m)" in
-       i?86)
-       case "$(find_device "/")" in
-               xvd* )
-                       echo Skip remove grub2 files, because pygrub fail.
-                       rm -f /boot/grub/*
-                       echo config will recreated by linux-pae install.
-                       ;;
-               * )
-                       #
-                       # Update to GRUB2 config
-                       #
-                       grub-mkconfig > /boot/grub/grub.cfg
-                       ;;
-       esac
-esac
+if [ -e /boot/grub/grub.cfg ]; then
+               grub-mkconfig > /boot/grub/grub.cfg
+fi
 
 # Upadate Kernel version uEnv.txt
 if [ -e /boot/uEnv.txt ]; then