diff options
-rwxr-xr-x | buildrom-withgrub | 6 | ||||
-rw-r--r-- | resources/grub/config/extra/vesafb.cfg | 2 | ||||
-rwxr-xr-x | resources/utilities/grub-assemble/gen.sh | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/buildrom-withgrub b/buildrom-withgrub index 7baafa3b..d9042411 100755 --- a/buildrom-withgrub +++ b/buildrom-withgrub @@ -68,6 +68,12 @@ do mv build/coreboot.rom "$1"_"$romtype".rom # .config no longer needed rm -f .config + + # Add the background image + if [ "$romtype" = "vesafb" ] + then + ./util/cbfstool/cbfstool "$1"_"$romtype".rom add -f ../resources/grub/background/background.jpg -n background.jpg -t raw + fi # Add the correct GRUB configuration file for this image. for keymap in $(ls ../resources/utilities/grub-assemble/keymap/original) diff --git a/resources/grub/config/extra/vesafb.cfg b/resources/grub/config/extra/vesafb.cfg index bf56ced1..6eaedf7a 100644 --- a/resources/grub/config/extra/vesafb.cfg +++ b/resources/grub/config/extra/vesafb.cfg @@ -1,5 +1,5 @@ insmod jpeg -background_image (memdisk)/background.jpg +background_image (cbfsdisk)/background.jpg loadfont (memdisk)/dejavusansmono.pf2 diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.sh index b784366e..b4ae7ad1 100755 --- a/resources/utilities/grub-assemble/gen.sh +++ b/resources/utilities/grub-assemble/gen.sh @@ -31,7 +31,6 @@ then --modules="$grub_modules" \ --install-modules="$grub_install_modules" \ /boot/grub/grub.cfg="../../../resources/grub/config/grub_memdisk.cfg" \ - /background.jpg="../../../resources/grub/background/background.jpg" \ /dejavusansmono.pf2="../../../resources/grub/font/dejavusansmono.pf2" \ $(./grub_memdisk_keymap) elif [ "$1" = "txtmode" ] |