]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
linux-pae: fix grub.conf creation on pv machines
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 18 Jun 2019 12:36:02 +0000 (14:36 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 18 Jun 2019 12:36:02 +0000 (14:36 +0200)
on some systems it seems that grub2 and it config also exist.

src/paks/linux-pae/install.sh

index fd71621d5752430293127c70c2a280a0dbcf2053..fa84c801ccd48bd8d60d853956f5735bfb7f9666 100644 (file)
@@ -67,7 +67,9 @@ if [ -e /boot/grub/grub.cfg ]; then
        # Update grub2 config
        #
        grub-mkconfig > /boot/grub/grub.cfg
-else
+fi
+
+if [ -e /boot/grub/grub.conf ]; then
        #
        # xen pv with pygrub need grub.conf / menu.lst
        #