grml / grml-rescueboot

32 stars 14 forks source link

Fix relative path detection of ISO files #6

Closed ste-fan closed 9 years ago

ste-fan commented 9 years ago

The problem becomes apparent when using symbolic links in $ISO_LOCATION that point to ISO files on another partition.

Calling make_system_path_relative_to_its_root not on the dirname but on the ISO file fixes this. Also avoid a double slash (//...) in $iso_path when $rel_dirname is just the root dir of that other partition (/).

mika commented 9 years ago

Thanks for the PR! I've adjusted the PR (the 42_grml.orig shouldn't be part of the commit/repository) and just merged it!