mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
scripts/mkimage: use same syslinux.cfg for uefi and legacy
... and use the new 'live' mode. cleanup fancy graphics bootstuff
This commit is contained in:
parent
0d847e4f13
commit
d112a25697
@ -111,44 +111,18 @@ if [ "$BOOTLOADER" = "syslinux" ]; then
|
|||||||
# create bootloader configuration
|
# create bootloader configuration
|
||||||
echo "image: creating bootloader configuration..."
|
echo "image: creating bootloader configuration..."
|
||||||
cat << EOF > "$OE_TMP"/syslinux.cfg
|
cat << EOF > "$OE_TMP"/syslinux.cfg
|
||||||
UI vesamenu.c32
|
SAY Press <TAB> to edit options
|
||||||
PROMPT 0
|
|
||||||
MENU TITLE Boot Menu
|
|
||||||
MENU BACKGROUND splash.png
|
|
||||||
TIMEOUT 50
|
|
||||||
DEFAULT installer
|
DEFAULT installer
|
||||||
|
TIMEOUT 50
|
||||||
MENU WIDTH 70
|
PROMPT 1
|
||||||
MENU MARGIN 15
|
|
||||||
MENU ROWS 2
|
|
||||||
MENU HSHIFT 4
|
|
||||||
MENU VSHIFT 13
|
|
||||||
MENU TIMEOUTROW 10
|
|
||||||
MENU TABMSGROW 8
|
|
||||||
MENU CMDLINEROW 8
|
|
||||||
MENU HELPMSGROW 13
|
|
||||||
MENU HELPMSGENDROW 26
|
|
||||||
MENU CLEAR
|
|
||||||
|
|
||||||
MENU COLOR border 30;44 #40ffffff #00000000 std
|
|
||||||
MENU COLOR title 1;36;44 #ff8bbfe3 #00000000 std
|
|
||||||
MENU COLOR sel 7;37;40 #80f0f0f0 #ff606060 all
|
|
||||||
MENU COLOR unsel 37;44 #50ffffff #00000000 std
|
|
||||||
MENU COLOR help 37;40 #c0ffffff #a0000000 std
|
|
||||||
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
|
|
||||||
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
|
|
||||||
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
|
|
||||||
MENU COLOR tabmsg 31;40 #ff868787 #00000000 std
|
|
||||||
|
|
||||||
LABEL installer
|
LABEL installer
|
||||||
MENU LABEL Run $DISTRONAME Installer
|
|
||||||
KERNEL /$KERNEL_NAME
|
KERNEL /$KERNEL_NAME
|
||||||
APPEND boot=UUID=$UUID_SYSTEM installer quiet tty vga=current
|
APPEND boot=UUID=$UUID_SYSTEM installer quiet tty vga=current
|
||||||
|
|
||||||
LABEL live
|
LABEL live
|
||||||
MENU LABEL Run $DISTRONAME Live
|
|
||||||
KERNEL /$KERNEL_NAME
|
KERNEL /$KERNEL_NAME
|
||||||
APPEND boot=UUID=$UUID_SYSTEM disk=UUID=$UUID_STORAGE quiet vga=current
|
APPEND boot=UUID=$UUID_SYSTEM live quiet tty vga=current
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# install extlinux
|
# install extlinux
|
||||||
@ -159,20 +133,10 @@ EOF
|
|||||||
echo "image: copying files to part1..."
|
echo "image: copying files to part1..."
|
||||||
cp $TARGET_IMG/$IMAGE_NAME.kernel "$OE_TMP/$KERNEL_NAME"
|
cp $TARGET_IMG/$IMAGE_NAME.kernel "$OE_TMP/$KERNEL_NAME"
|
||||||
cp $TARGET_IMG/$IMAGE_NAME.system "$OE_TMP/SYSTEM"
|
cp $TARGET_IMG/$IMAGE_NAME.system "$OE_TMP/SYSTEM"
|
||||||
cp $RELEASE_DIR/splash.png "$OE_TMP"
|
|
||||||
cp $ROOT/$TOOLCHAIN/share/syslinux/vesamenu.c32 "$OE_TMP"
|
|
||||||
cp $ROOT/$TOOLCHAIN/share/syslinux/libcom32.c32 "$OE_TMP"
|
|
||||||
cp $ROOT/$TOOLCHAIN/share/syslinux/libutil.c32 "$OE_TMP"
|
|
||||||
mkdir -p "$OE_TMP/EFI/BOOT"
|
mkdir -p "$OE_TMP/EFI/BOOT"
|
||||||
cp $ROOT/$TOOLCHAIN/share/syslinux/bootx64.efi "$OE_TMP/EFI/BOOT"
|
cp $ROOT/$TOOLCHAIN/share/syslinux/bootx64.efi "$OE_TMP/EFI/BOOT"
|
||||||
cp $ROOT/$TOOLCHAIN/share/syslinux/ldlinux.e64 "$OE_TMP/EFI/BOOT"
|
cp $ROOT/$TOOLCHAIN/share/syslinux/ldlinux.e64 "$OE_TMP/EFI/BOOT"
|
||||||
cat << EOF > "$OE_TMP"/EFI/BOOT/syslinux.cfg
|
cp "$OE_TMP"/syslinux.cfg "$OE_TMP"/EFI/BOOT/syslinux.cfg
|
||||||
DEFAULT installer
|
|
||||||
|
|
||||||
LABEL installer
|
|
||||||
KERNEL /$KERNEL_NAME
|
|
||||||
APPEND boot=UUID=$UUID_SYSTEM installer quiet tty vga=current
|
|
||||||
EOF
|
|
||||||
elif [ "$BOOTLOADER" = "bcm2835-bootloader" ]; then
|
elif [ "$BOOTLOADER" = "bcm2835-bootloader" ]; then
|
||||||
# create bootloader configuration
|
# create bootloader configuration
|
||||||
echo "image: creating bootloader configuration..."
|
echo "image: creating bootloader configuration..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user