mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
Merge pull request #3573 from MilhouseVH/le10_installer_options
init: more informative syslinux boot message
This commit is contained in:
commit
4b0687558d
@ -589,7 +589,8 @@ update_bootmenu() {
|
|||||||
progress "Updating /flash/syslinux.cfg [$crnt_default -> $SYSLINUX_DEFAULT]"
|
progress "Updating /flash/syslinux.cfg [$crnt_default -> $SYSLINUX_DEFAULT]"
|
||||||
|
|
||||||
mount -o remount,rw /flash
|
mount -o remount,rw /flash
|
||||||
sed -i "s/^DEFAULT .*/DEFAULT $SYSLINUX_DEFAULT/" /flash/syslinux.cfg
|
sed -e "s/^SAY Wait for .* mode/SAY Wait for ${SYSLINUX_DEFAULT} mode/" -i /flash/syslinux.cfg
|
||||||
|
sed -e "s/^DEFAULT .*/DEFAULT $SYSLINUX_DEFAULT/" -i /flash/syslinux.cfg
|
||||||
rm -f /flash/EFI/BOOT/syslinux.cfg
|
rm -f /flash/EFI/BOOT/syslinux.cfg
|
||||||
mount -o remount,ro /flash
|
mount -o remount,ro /flash
|
||||||
fi
|
fi
|
||||||
@ -603,7 +604,7 @@ update_bootmenu() {
|
|||||||
progress "Updating /flash/EFI/BOOT/grub.cfg [$crnt_default -> \"$GRUB_DEFAULT\"]"
|
progress "Updating /flash/EFI/BOOT/grub.cfg [$crnt_default -> \"$GRUB_DEFAULT\"]"
|
||||||
|
|
||||||
mount -o remount,rw /flash
|
mount -o remount,rw /flash
|
||||||
sed -i "s/^set default=.*/set default=\"$GRUB_DEFAULT\"/" /flash/EFI/BOOT/grub.cfg
|
sed -e "s/^set default=.*/set default=\"$GRUB_DEFAULT\"/" -i /flash/EFI/BOOT/grub.cfg
|
||||||
rm -f /flash/grub.cfg
|
rm -f /flash/grub.cfg
|
||||||
mount -o remount,ro /flash
|
mount -o remount,ro /flash
|
||||||
fi
|
fi
|
||||||
|
@ -115,7 +115,14 @@ if [ "${BOOTLOADER}" = "syslinux" ]; then
|
|||||||
# create bootloader configuration
|
# create bootloader configuration
|
||||||
echo "image: creating bootloader configuration..."
|
echo "image: creating bootloader configuration..."
|
||||||
cat << EOF > "${LE_TMP}/syslinux.cfg"
|
cat << EOF > "${LE_TMP}/syslinux.cfg"
|
||||||
SAY Wait for installer to start or press <TAB> for more options (live, run)
|
SAY Wait for installer mode to start automatically in 5 seconds...
|
||||||
|
SAY
|
||||||
|
SAY Options
|
||||||
|
SAY =======
|
||||||
|
SAY installer: permanently install ${DISTRO} to HDD/SSD
|
||||||
|
SAY live: boot ${DISTRO} using RAM for temporary storage
|
||||||
|
SAY run: boot ${DISTRO} using this USB memory device for storage
|
||||||
|
SAY
|
||||||
DEFAULT installer
|
DEFAULT installer
|
||||||
TIMEOUT 50
|
TIMEOUT 50
|
||||||
PROMPT 1
|
PROMPT 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user