From: Arne Fitzenreiter Date: Tue, 11 Aug 2015 13:31:26 +0000 (+0200) Subject: core93: prevent erase content of grub.conf if grub-mkconfig run into in error. X-Git-Tag: v2.17-core94~76 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=a8379a53d4bcde7e72463446d7f40e92534d532e core93: prevent erase content of grub.conf if grub-mkconfig run into in error. --- diff --git a/config/rootfiles/core/93/update.sh b/config/rootfiles/core/93/update.sh index f8aebdf9b5..4644543770 100644 --- a/config/rootfiles/core/93/update.sh +++ b/config/rootfiles/core/93/update.sh @@ -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