diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-11-20 22:43:35 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-11-20 22:46:12 (EST) |
commit | 2909df32ac0b1cb6d6afe155232e2404ffad3f65 (patch) | |
tree | 0e8b2fff372ee519805e54873896eda89e773a0b /resources | |
parent | 707cba17267a529c86f75285fdd63b0cf45ad672 (diff) | |
download | libreboot-2909df32ac0b1cb6d6afe155232e2404ffad3f65.zip libreboot-2909df32ac0b1cb6d6afe155232e2404ffad3f65.tar.gz libreboot-2909df32ac0b1cb6d6afe155232e2404ffad3f65.tar.bz2 |
Move CBFS files to GRUB memdisk, except grub.cfg and grubtest.cfg
Set the GRUB configs to use (memdisk) instead of (cbfsdisk) for
these files.
This reduces the space used in CBFS because coreboot compresses
it's payloads with LZMA by default.
Most users will only want to use cbfstool to modify the grub.cfg
or grubtest.cfg.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/grub/config/extra/vesafb.cfg | 4 | ||||
-rw-r--r-- | resources/grub/config/menuentries/txtmode.cfg | 4 | ||||
-rwxr-xr-x | resources/utilities/grub-assemble/gen.txtmode.sh (copied from resources/utilities/grub-assemble/gen.sh) | 7 | ||||
-rwxr-xr-x | resources/utilities/grub-assemble/gen.vesafb.sh (renamed from resources/utilities/grub-assemble/gen.sh) | 4 |
4 files changed, 13 insertions, 6 deletions
diff --git a/resources/grub/config/extra/vesafb.cfg b/resources/grub/config/extra/vesafb.cfg index bcad5cb..bf56ced 100644 --- a/resources/grub/config/extra/vesafb.cfg +++ b/resources/grub/config/extra/vesafb.cfg @@ -1,5 +1,5 @@ insmod jpeg -background_image (cbfsdisk)/background.jpg -loadfont (cbfsdisk)/dejavusansmono.pf2 +background_image (memdisk)/background.jpg +loadfont (memdisk)/dejavusansmono.pf2 diff --git a/resources/grub/config/menuentries/txtmode.cfg b/resources/grub/config/menuentries/txtmode.cfg index 087886e..ded51bd 100644 --- a/resources/grub/config/menuentries/txtmode.cfg +++ b/resources/grub/config/menuentries/txtmode.cfg @@ -1,9 +1,9 @@ menuentry 'Load GRUB Invaders' { - set root='cbfsdisk' + set root='memdisk' chainloader /invaders.exec } menuentry 'Load MemTest86+' { - set root='cbfsdisk' + set root='memdisk' chainloader /memtest } diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.txtmode.sh index fb1896b..cfe7482 100755 --- a/resources/utilities/grub-assemble/gen.sh +++ b/resources/utilities/grub-assemble/gen.txtmode.sh @@ -17,6 +17,8 @@ grub_install_modules="adler32 all_video archelp ata backtrace bitmap bitmap_scal # Modules (and always loaded) grub_modules="acpi ahci at_keyboard boot cat cbfs cbls cbtime chain cmosdump cmostest cbmemc crypto cryptodisk configfile datehook date datetime diskfilter disk echo ext2 ehci fat halt help iorw iso9660 keystatus linux loopback ls lsacpi lsmmap lspci luks lvm memdisk minicmd memrw morse normal ohci part_gpt part_msdos password password_pbkdf2 pbkdf2 pcidump pci play probe reboot serial terminal test usb_keyboard usbms uhci gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool hdparm regexp spkmodem syslinuxcfg usb verify videoinfo videotest xfs btrfs zfs sfs romfs reiserfs nilfs2 minix_be minix3_be minix3 minix2_be minix2 minix jfs hfsplus hfs bfs afs affs gfxmenu gfxterm_background gfxterm_menu jpeg png tga pata" +pwd + # Generate the grub.elf $grubdir/grub-mkstandalone \ --grub-mkimage=$grubdir/grub-mkimage \ @@ -26,5 +28,8 @@ $grubdir/grub-mkstandalone \ --fonts= --themes= --locales= \ --modules="$grub_modules" \ --install-modules="$grub_install_modules" \ - /boot/grub/grub.cfg=../../../resources/grub/config/grub_memdisk.cfg \ + /boot/grub/grub.cfg="../../../resources/grub/config/grub_memdisk.cfg" \ + /memtest="../../../memtest86+-5.01/memtest" \ + /invaders.exec="../../../grubinvaders/invaders.exec" \ $(./grub_memdisk_keymap) \ + diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.vesafb.sh index fb1896b..1c0b593 100755 --- a/resources/utilities/grub-assemble/gen.sh +++ b/resources/utilities/grub-assemble/gen.vesafb.sh @@ -26,5 +26,7 @@ $grubdir/grub-mkstandalone \ --fonts= --themes= --locales= \ --modules="$grub_modules" \ --install-modules="$grub_install_modules" \ - /boot/grub/grub.cfg=../../../resources/grub/config/grub_memdisk.cfg \ + /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) \ |