diff --git a/ChangeLog b/ChangeLog index 7ff7a99cc..1d38f0912 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-04-11 Vladimir Serbinenko + + * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue + and grub-mknetdir. + 2012-04-11 Vladimir Serbinenko * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index d0a2678a8..489cc12dc 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -138,7 +138,7 @@ EOF isofile=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1 if [ x$boot != xnet ]; then - sh "@builddir@/grub-mkrescue" "--grub-mkimage=${builddir}/grub-mkimage" "--output=${isofile}" "--override-directory=${builddir}/grub-core" \ + pkgdatadir="@builddir@" sh "@builddir@/grub-mkrescue" "--grub-mkimage=${builddir}/grub-mkimage" "--output=${isofile}" "--override-directory=${builddir}/grub-core" \ --rom-directory="${rom_directory}" \ "/boot/grub/grub.cfg=${cfgfile}" "/boot/grub/testcase.cfg=${source}" \ ${files} >/dev/null 2>&1 @@ -171,7 +171,7 @@ fi if [ x$boot = xnet ]; then netdir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1 - sh "@builddir@/grub-mknetdir" "--grub-mkimage=${builddir}/grub-mkimage" "--override-directory=${builddir}/grub-core" "--net-directory=$netdir" + pkgdatadir="@builddir@" sh "@builddir@/grub-mknetdir" "--grub-mkimage=${builddir}/grub-mkimage" "--override-directory=${builddir}/grub-core" "--net-directory=$netdir" cp "${cfgfile}" "$netdir/boot/grub/grub.cfg" cp "${source}" "$netdir/boot/grub/testcase.cfg" . "${builddir}/grub-core/modinfo.sh"