Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3876300 in mainline for tools/grub/mkimage.sh


Ignore:
Timestamp:
2016-04-05T18:32:23Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
cfb1217
Parents:
5823f4da
Message:

Do not depend on scripts being run from the directory they reside in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/grub/mkimage.sh

    r5823f4da r3876300  
    3737#
    3838
    39 grub_tools_dir="$(pwd)"/grub-build/i386-pc/bin
    40 grub_mod_dir="$(pwd)"/../../boot/grub.pc/i386-pc
     39orig_dir="$(cd "$(dirname "$0")" && pwd)"
     40grub_tools_dir="$orig_dir/grub-build/i386-pc/bin"
     41grub_mod_dir="$orig_dir/../../boot/grub.pc/i386-pc"
    4142
    4243"$grub_tools_dir"/grub-mkimage --directory "$grub_mod_dir" \
    43     --prefix "$grub_mod_dir" --output "$grub_mod_dir"/"core.img" \
    44     --format 'i386-pc' --compression 'auto' --config "$(pwd)"/"load.cfg" \
     44    --prefix "$grub_mod_dir" --output "$grub_mod_dir/core.img" \
     45    --format 'i386-pc' --compression 'auto' --config "$orig_dir/load.cfg" \
    4546    "minix3" "part_msdos" "biosdisk" "search_fs_uuid"
Note: See TracChangeset for help on using the changeset viewer.