mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
added EFI 32bit support via GRUB2-updated busybox init config
This commit is contained in:
parent
7121db0b95
commit
7def0a79dc
@ -156,10 +156,10 @@
|
||||
;;
|
||||
grub_live)
|
||||
LIVE=yes
|
||||
GRUB_DEFAULT="\"Live\""
|
||||
GRUB_DEFAULT="Live"
|
||||
;;
|
||||
grub_portable)
|
||||
GRUB_DEFAULT="\"Run\""
|
||||
GRUB_DEFAULT="Run"
|
||||
;;
|
||||
overlay)
|
||||
OVERLAY=yes
|
||||
@ -708,7 +708,7 @@
|
||||
}
|
||||
|
||||
# Make last bootloader label (installer, live, run etc.) as the new default
|
||||
update_syslinux() {
|
||||
update_bootmenu() {
|
||||
local crnt_default
|
||||
|
||||
if [ -n "$SYSLINUX_DEFAULT" -a -f /flash/syslinux.cfg ]; then
|
||||
@ -725,14 +725,14 @@
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$GRUB_DEFAULT" -a -f /flash/grub.cfg ]; then
|
||||
if grep -q "^menuentry $GRUB_DEFAULT" /flash/grub.cfg; then
|
||||
if [ -n "\"$GRUB_DEFAULT\"" -a -f /flash/grub.cfg ]; then
|
||||
if grep -q "^menuentry \"$GRUB_DEFAULT\"" /flash/grub.cfg; then
|
||||
crnt_default="$(awk '/^set default/ {print substr($2,9,19)}' /flash/grub.cfg)"
|
||||
if [ ! "$crnt_default" = "$GRUB_DEFAULT" ]; then
|
||||
progress "Updating /flash/grub.cfg [$crnt_default -> $GRUB_DEFAULT]"
|
||||
if [ ! "$crnt_default" = "\"$GRUB_DEFAULT\"" ]; then
|
||||
progress "Updating /flash/grub.cfg [$crnt_default -> \"$GRUB_DEFAULT\"]"
|
||||
|
||||
mount -o remount,rw /flash
|
||||
sed -i "s/^set default=.*/set default=$GRUB_DEFAULT/" /flash/grub.cfg
|
||||
sed -i "s/^set default=.*/set default=\"$GRUB_DEFAULT\"/" /flash/grub.cfg
|
||||
[ -f /flash/EFI/BOOT/grub.cfg ] && cp /flash/grub.cfg /flash/EFI/BOOT/grub.cfg
|
||||
mount -o remount,ro /flash
|
||||
fi
|
||||
@ -1060,7 +1060,7 @@
|
||||
load_modules \
|
||||
check_disks \
|
||||
mount_flash \
|
||||
update_syslinux \
|
||||
update_bootmenu \
|
||||
load_splash \
|
||||
mount_storage \
|
||||
check_update \
|
||||
|
Loading…
x
Reference in New Issue
Block a user