mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
fs/iso9660: add Grub splashscreen support
When Grub is built with splashscreen support, copy the splashscreen image to the ISO9660 filesystem. Otherwise, disable the splashscreen in the grub menu.lst file. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
parent
ed23c92b62
commit
13d7c78394
@ -16,6 +16,11 @@ $(BINARIES_DIR)/rootfs.iso9660: host-cdrkit host-fakeroot linux rootfs-cpio grub
|
|||||||
mkdir -p $(ISO9660_TARGET_DIR)/boot/grub
|
mkdir -p $(ISO9660_TARGET_DIR)/boot/grub
|
||||||
cp $(GRUB_DIR)/stage2/stage2_eltorito $(ISO9660_TARGET_DIR)/boot/grub/
|
cp $(GRUB_DIR)/stage2/stage2_eltorito $(ISO9660_TARGET_DIR)/boot/grub/
|
||||||
cp $(ISO9660_BOOT_MENU) $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
|
cp $(ISO9660_BOOT_MENU) $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
|
||||||
|
ifeq ($(BR2_TARGET_GRUB_SPLASH),)
|
||||||
|
$(SED) '/^splashimage/d' $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
|
||||||
|
else
|
||||||
|
cp boot/grub/splash.xpm.gz $(ISO9660_TARGET_DIR)/
|
||||||
|
endif
|
||||||
cp $(LINUX_IMAGE_PATH) $(ISO9660_TARGET_DIR)/kernel
|
cp $(LINUX_IMAGE_PATH) $(ISO9660_TARGET_DIR)/kernel
|
||||||
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
|
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
|
||||||
$(SED) '/initrd/d' $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
|
$(SED) '/initrd/d' $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
|
||||||
|
@ -1,7 +1,16 @@
|
|||||||
default 0
|
default 0
|
||||||
timeout 10
|
timeout 10
|
||||||
|
|
||||||
|
# Used when no splashimage is used
|
||||||
color cyan/blue white/blue
|
color cyan/blue white/blue
|
||||||
|
|
||||||
|
# Gets enabled/disabled depending on Grub support for splashimage
|
||||||
|
splashimage /splash.xpm.gz
|
||||||
|
|
||||||
|
# Used when a splashimage is enabled
|
||||||
|
foreground 000000
|
||||||
|
background cccccc
|
||||||
|
|
||||||
title Buildroot ISO9660 image
|
title Buildroot ISO9660 image
|
||||||
kernel /kernel
|
kernel /kernel
|
||||||
initrd /initrd
|
initrd /initrd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user