]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core93: prevent erase content of grub.conf if grub-mkconfig run into in error.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 11 Aug 2015 13:31:26 +0000 (15:31 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 11 Aug 2015 13:31:26 +0000 (15:31 +0200)
config/rootfiles/core/93/update.sh

index f8aebdf9b5695a96c7ed9056fa624507a6aaeca8..4644543770828a4ca551f259237e45f0728cde49 100644 (file)
@@ -57,7 +57,7 @@ rm -f /opt/pakfire/db/rootfiles/libevent2
 sendprofile
 # Update grub config to display new core version
 if [ -e /boot/grub/grub.cfg ]; then
-       grub-mkconfig > /boot/grub/grub.cfg
+       grub-mkconfig -o /boot/grub/grub.cfg
 fi
 sync