mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 14:33:00 +02:00
core93: prevent erase content of grub.conf if grub-mkconfig run into in error.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user