From 2473d1ec61475362f1395512c50ec66289dd46bc Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 25 Apr 2013 01:36:20 +0200 Subject: [PATCH 347/482] * util/grub-mkrescue.in: Move all files that don't have a location set in stone under /boot/grub. Use ISO hard links rather than copies to save some space. --- ChangeLog | 6 ++++++ util/grub-mkrescue.in | 55 ++++++++++++++++++++++++++------------------------- 2 files changed, 34 insertions(+), 27 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2670946..f77a87a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-04-25 Vladimir Serbinenko + + * util/grub-mkrescue.in: Move all files that don't have a location + set in stone under /boot/grub. Use ISO hard links rather than copies + to save some space. + 2013-04-24 Vladimir Serbinenko * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore diff --git a/util/grub-mkrescue.in b/util/grub-mkrescue.in index 22b9cf0..e944b89 100644 --- a/util/grub-mkrescue.in +++ b/util/grub-mkrescue.in @@ -226,6 +226,7 @@ fi iso9660_dir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1 mkdir -p ${iso9660_dir}/boot/grub +mkdir -p ${iso9660_dir}/boot/grub/roms process_input_dir () { @@ -399,9 +400,9 @@ if test -e "${pc_dir}" ; then fi # build multiboot core.img -make_image "${multiboot_dir}" i386-multiboot "${iso9660_dir}/boot/multiboot.img" "pata ahci at_keyboard" +make_image "${multiboot_dir}" i386-multiboot "${iso9660_dir}/boot/grub/i386-multiboot/core.elf" "pata ahci at_keyboard" -make_image_fwdisk "${i386_ieee1275_dir}" i386-ieee1275 "${iso9660_dir}/boot/ofwx86.elf" "" +make_image_fwdisk "${i386_ieee1275_dir}" i386-ieee1275 "${iso9660_dir}/boot/grub/i386-ieee1275/core.elf" "" if test -e "${efi64_dir}" || test -e "${efi32_dir}" || test -e "${ia64_dir}"; then efi_dir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1 @@ -436,8 +437,8 @@ if test -e "${efi64_dir}" || test -e "${efi32_dir}" || test -e "${ia64_dir}"; th grub_mkisofs_arguments="${grub_mkisofs_arguments} --efi-boot efi.img -efi-boot-part --efi-boot-image" fi -make_image_fwdisk "${ppc_dir}" powerpc-ieee1275 "${iso9660_dir}/boot/powerpc.elf" "" -if [ -e "${iso9660_dir}"/System/Library/CoreServices/boot.efi ] || [ -e "${iso9660_dir}/boot/powerpc.elf" ]; then +make_image_fwdisk "${ppc_dir}" powerpc-ieee1275 "${iso9660_dir}/boot/grub/powerpc-ieee1275/core.elf" "" +if [ -e "${iso9660_dir}"/System/Library/CoreServices/boot.efi ] || [ -e "${iso9660_dir}/boot/grub/powerpc-ieee1275/core.elf" ]; then mkdir -p "${iso9660_dir}"/System/Library/CoreServices touch "${iso9660_dir}/mach_kernel" cat > "${iso9660_dir}/System/Library/CoreServices/SystemVersion.plist" <