]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/93/update.sh
core93: prevent erase content of grub.conf if grub-mkconfig run into in error.
[people/pmueller/ipfire-2.x.git] / 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