|
|
f96e0b |
From 2473d1ec61475362f1395512c50ec66289dd46bc Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Thu, 25 Apr 2013 01:36:20 +0200
|
|
|
f96e0b |
Subject: [PATCH 347/482] * util/grub-mkrescue.in: Move all files that
|
|
|
f96e0b |
don't have a location set in stone under /boot/grub. Use ISO hard links
|
|
|
f96e0b |
rather than copies to save some space.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 6 ++++++
|
|
|
f96e0b |
util/grub-mkrescue.in | 55 ++++++++++++++++++++++++++-------------------------
|
|
|
f96e0b |
2 files changed, 34 insertions(+), 27 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 2670946..f77a87a 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,3 +1,9 @@
|
|
|
f96e0b |
+2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+ * util/grub-mkrescue.in: Move all files that don't have a location
|
|
|
f96e0b |
+ set in stone under /boot/grub. Use ISO hard links rather than copies
|
|
|
f96e0b |
+ to save some space.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
* grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
|
|
|
f96e0b |
diff --git a/util/grub-mkrescue.in b/util/grub-mkrescue.in
|
|
|
f96e0b |
index 22b9cf0..e944b89 100644
|
|
|
f96e0b |
--- a/util/grub-mkrescue.in
|
|
|
f96e0b |
+++ b/util/grub-mkrescue.in
|
|
|
f96e0b |
@@ -226,6 +226,7 @@ fi
|
|
|
f96e0b |
|
|
|
f96e0b |
iso9660_dir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
|
|
|
f96e0b |
mkdir -p ${iso9660_dir}/boot/grub
|
|
|
f96e0b |
+mkdir -p ${iso9660_dir}/boot/grub/roms
|
|
|
f96e0b |
|
|
|
f96e0b |
process_input_dir ()
|
|
|
f96e0b |
{
|
|
|
f96e0b |
@@ -399,9 +400,9 @@ if test -e "${pc_dir}" ; then
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
# build multiboot core.img
|
|
|
f96e0b |
-make_image "${multiboot_dir}" i386-multiboot "${iso9660_dir}/boot/multiboot.img" "pata ahci at_keyboard"
|
|
|
f96e0b |
+make_image "${multiboot_dir}" i386-multiboot "${iso9660_dir}/boot/grub/i386-multiboot/core.elf" "pata ahci at_keyboard"
|
|
|
f96e0b |
|
|
|
f96e0b |
-make_image_fwdisk "${i386_ieee1275_dir}" i386-ieee1275 "${iso9660_dir}/boot/ofwx86.elf" ""
|
|
|
f96e0b |
+make_image_fwdisk "${i386_ieee1275_dir}" i386-ieee1275 "${iso9660_dir}/boot/grub/i386-ieee1275/core.elf" ""
|
|
|
f96e0b |
|
|
|
f96e0b |
if test -e "${efi64_dir}" || test -e "${efi32_dir}" || test -e "${ia64_dir}"; then
|
|
|
f96e0b |
efi_dir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
|
|
|
f96e0b |
@@ -436,8 +437,8 @@ if test -e "${efi64_dir}" || test -e "${efi32_dir}" || test -e "${ia64_dir}"; th
|
|
|
f96e0b |
grub_mkisofs_arguments="${grub_mkisofs_arguments} --efi-boot efi.img -efi-boot-part --efi-boot-image"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
-make_image_fwdisk "${ppc_dir}" powerpc-ieee1275 "${iso9660_dir}/boot/powerpc.elf" ""
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}"/System/Library/CoreServices/boot.efi ] || [ -e "${iso9660_dir}/boot/powerpc.elf" ]; then
|
|
|
f96e0b |
+make_image_fwdisk "${ppc_dir}" powerpc-ieee1275 "${iso9660_dir}/boot/grub/powerpc-ieee1275/core.elf" ""
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}"/System/Library/CoreServices/boot.efi ] || [ -e "${iso9660_dir}/boot/grub/powerpc-ieee1275/core.elf" ]; then
|
|
|
f96e0b |
mkdir -p "${iso9660_dir}"/System/Library/CoreServices
|
|
|
f96e0b |
touch "${iso9660_dir}/mach_kernel"
|
|
|
f96e0b |
cat > "${iso9660_dir}/System/Library/CoreServices/SystemVersion.plist" <
|
|
|
f96e0b |
@@ -459,11 +460,11 @@ EOF
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/powerpc.elf" ] ; then
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/grub/powerpc-ieee1275/core.elf" ] ; then
|
|
|
f96e0b |
cp "${ppc_dir}/grub.chrp" "${iso9660_dir}"/System/Library/CoreServices/BootX
|
|
|
f96e0b |
mkdir -p "${iso9660_dir}"/ppc/chrp
|
|
|
f96e0b |
cp "${ppc_dir}/bootinfo.txt" "${iso9660_dir}"/ppc/bootinfo.txt
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/powerpc.elf" "${iso9660_dir}"/System/Library/CoreServices/grub.elf
|
|
|
f96e0b |
+ grub_mkisofs_arguments="${grub_mkisofs_arguments} /System/Library/CoreServices/grub.elf=${iso9660_dir}/boot/grub/powerpc-ieee1275/core.elf /boot/grub/powerpc.elf=${iso9660_dir}/boot/grub/powerpc-ieee1275/core.elf"
|
|
|
f96e0b |
# FIXME: add PreP
|
|
|
f96e0b |
if [ "$system_area" = common ]; then
|
|
|
f96e0b |
grub_mkisofs_arguments="${grub_mkisofs_arguments} -hfsplus-file-creator-type chrp tbxi /System/Library/CoreServices/BootX -hfs-bless-by p /System/Library/CoreServices"
|
|
|
f96e0b |
@@ -490,36 +491,36 @@ if [ -e "${iso9660_dir}/boot/grub/mips-arc/core.img" ] && [ "$system_area" = arc
|
|
|
f96e0b |
grub_mkisofs_arguments="${grub_mkisofs_arguments} -mips-boot /boot/grub/mips-arc/sashARCS -mips-boot /boot/grub/mips-arc/sash -mips-boot /boot/grub/mips-arc/grub"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
-make_image "${mipsel_qemu_dir}" mipsel-qemu_mips-elf "${iso9660_dir}/boot/mipsel-qemu_mips.elf" "pata"
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/mipsel-qemu_mips.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/mipsel-qemu_mips.elf" "${rom_directory}/mipsel-qemu_mips.elf"
|
|
|
f96e0b |
+make_image "${mipsel_qemu_dir}" mipsel-qemu_mips-elf "${iso9660_dir}/boot/grub/roms/mipsel-qemu_mips.elf" "pata"
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/grub/roms/mipsel-qemu_mips.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
+ cp "${iso9660_dir}/boot/grub/roms/mipsel-qemu_mips.elf" "${rom_directory}/mipsel-qemu_mips.elf"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
-make_image "${loongson_dir}" mipsel-loongson-elf "${iso9660_dir}/boot/mipsel-loongson.elf" "pata -C xz"
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/mipsel-loongson.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/mipsel-loongson.elf" "${rom_directory}/mipsel-loongson.elf"
|
|
|
f96e0b |
+make_image "${loongson_dir}" mipsel-loongson-elf "${iso9660_dir}/boot/mipsel-loongson/core.elf" "pata -C xz"
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/mipsel-loongson/core.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
+ cp "${iso9660_dir}/boot/mipsel-loongson/core.elf" "${rom_directory}/mipsel-loongson.elf"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
-make_image "${loongson_dir}" mipsel-yeeloong-flash "${iso9660_dir}/boot/mipsel-yeeloong.bin" "pata -C xz"
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/mipsel-yeeloong.bin" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/mipsel-yeeloong.bin" "${rom_directory}/mipsel-yeeloong.bin"
|
|
|
f96e0b |
+make_image "${loongson_dir}" mipsel-yeeloong-flash "${iso9660_dir}/boot/grub/roms/mipsel-yeeloong.bin" "pata -C xz"
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/grub/roms/mipsel-yeeloong.bin" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
+ cp "${iso9660_dir}/boot/grub/roms/mipsel-yeeloong.bin" "${rom_directory}/mipsel-yeeloong.bin"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
-make_image "${loongson_dir}" mipsel-fuloong2f-flash "${iso9660_dir}/boot/mipsel-fuloong2f.bin" "pata -C xz"
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/mipsel-fulong.bin" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/mipsel-fulong.bin" "${rom_directory}/mipsel-fulong.bin"
|
|
|
f96e0b |
+make_image "${loongson_dir}" mipsel-fuloong2f-flash "${iso9660_dir}/boot/grub/roms/mipsel-fuloong2f.bin" "pata -C xz"
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/grub/roms/mipsel-fulong.bin" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
+ cp "${iso9660_dir}/boot/grub/roms/mipsel-fulong.bin" "${rom_directory}/mipsel-fulong.bin"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
-make_image "${mips_qemu_dir}" mips-qemu_mips-elf "${iso9660_dir}/boot/mips-qemu_mips.elf" "pata"
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/mips-qemu_mips.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/mips-qemu_mips.elf" "${rom_directory}/mips-qemu_mips.elf"
|
|
|
f96e0b |
+make_image "${mips_qemu_dir}" mips-qemu_mips-elf "${iso9660_dir}/boot/grub/roms/mips-qemu_mips.elf" "pata"
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/grub/roms/mips-qemu_mips.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
+ cp "${iso9660_dir}/boot/grub/roms/mips-qemu_mips.elf" "${rom_directory}/mips-qemu_mips.elf"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
-make_image "${qemu_dir}" i386-qemu "${iso9660_dir}/boot/qemu.img" "pata at_keyboard"
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/qemu.img" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/qemu.img" "${rom_directory}/qemu.img"
|
|
|
f96e0b |
+make_image "${qemu_dir}" i386-qemu "${iso9660_dir}/boot/grub/roms/qemu.img" "pata at_keyboard"
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/grub/roms/qemu.img" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
+ cp "${iso9660_dir}/boot/grub/roms/qemu.img" "${rom_directory}/qemu.img"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
-make_image "${coreboot_dir}" i386-coreboot "${iso9660_dir}/boot/coreboot.elf" "pata ahci at_keyboard"
|
|
|
f96e0b |
-if [ -e "${iso9660_dir}/boot/coreboot.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
- cp "${iso9660_dir}/boot/coreboot.elf" "${rom_directory}/coreboot.elf"
|
|
|
f96e0b |
+make_image "${coreboot_dir}" i386-coreboot "${iso9660_dir}/boot/grub/roms/coreboot.elf" "pata ahci at_keyboard"
|
|
|
f96e0b |
+if [ -e "${iso9660_dir}/boot/grub/roms/coreboot.elf" ] && [ -d "${rom_directory}" ]; then
|
|
|
f96e0b |
+ cp "${iso9660_dir}/boot/grub/roms/coreboot.elf" "${rom_directory}/coreboot.elf"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
# build iso image
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|