mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-01 07:50:23 +02:00
Add script that automatically updates/installs GRUB2
This script also handles RAID devices
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
etc/system-release
|
||||
etc/issue
|
||||
opt/pakfire/etc/pakfire.conf
|
||||
usr/local/bin/update-bootloader
|
||||
var/ipfire/header.pl
|
||||
var/ipfire/langs
|
||||
var/ipfire/lang.pl
|
||||
|
||||
@@ -180,16 +180,10 @@ case "$(uname -m)" in
|
||||
echo "GRUB_TERMINAL=\"serial\"" >> /etc/default/grub
|
||||
echo "GRUB_SERIAL_COMMAND=\"serial --unit=0 --speed=115200\"" >> /etc/default/grub
|
||||
fi
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
ROOT=$(mount | grep " / " | cut -d" " -f1)
|
||||
ROOT=${ROOT::-1}
|
||||
|
||||
if ! grub-install --no-floppy --recheck "${ROOT}"; then
|
||||
if ! grub-install --no-floppy --recheck --force "${ROOT}"; then
|
||||
logger -p syslog.emerg -t ipfire \
|
||||
"Could not update the bootloader!"
|
||||
fi
|
||||
if ! /usr/local/bin/update-bootloader; then
|
||||
logger -p syslog.emerg -t ipfire \
|
||||
"Could not update the bootloader!"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user