* util/grub-mkstandalone.in: Fix modules directory.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-09 14:45:56 +01:00
parent a9d96eeb21
commit 571e140e26
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkstandalone.in: Fix modules directory.
2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkimage.c (image_targets): Set default_compression to lzma

View file

@ -154,6 +154,8 @@ if [ "x$source_directory" = x ] ; then
source_directory="${libdir}/$(echo ${PACKAGE_TARNAME} | sed ${transform})/$cpu-$platform"
fi
. "${source_directory}"/modinfo.sh
set $grub_mkimage dummy
if test -f "$1"; then
:
@ -163,17 +165,17 @@ else
fi
memdisk_dir="`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
mkdir -p "${memdisk_dir}"/boot/grub
mkdir -p "${memdisk_dir}"/boot/grub/"${grub_modinfo_target_cpu}-${grub_modinfo_platform}"
for file in "${source_directory}/"*.mod "${source_directory}/"efiemu32.o "${source_directory}/"efiemu64.o; do
if test -f "$file"; then
cp -f "$file" "${memdisk_dir}"/boot/grub/
cp -f "$file" "${memdisk_dir}"/boot/grub/"${grub_modinfo_target_cpu}-${grub_modinfo_platform}"
fi
done
for file in ${pkglib_DATA}; do
if test -f "${source_directory}/${file}"; then
cp -f "${source_directory}/${file}" "${memdisk_dir}"/boot/grub/
cp -f "${source_directory}/${file}" "${memdisk_dir}"/boot/grub/"${grub_modinfo_target_cpu}-${grub_modinfo_platform}"
fi
done