functions: canonicalize symbolic link path
Created by: eworm-de
Deprectating a hook 'old-hook' and replacing it with new hook 'new-hook' required the symlink to point to an absolute target:
/usr/lib/initcpio/install/old-hook -> /usr/lib/initcpio/install/new-hook
Let's canonicalize the path read by readlink
, this allows to link
relative path in symbolic link:
/usr/lib/initcpio/install/old-hook -> new-hook