Skip to content

resolve symlinks when checking for deprecation

Kristian Klausen requested to merge github/fork/tlahdekorpi/dep-source into master

Created by: tlahdekorpi

If a deprecation symlink points to a hook that collides with something in PATH, it gets sourced instead. Use absolute paths when sourcing install hooks.

$ readlink install/test
sleep
$ ./mkinitcpio -k none -c /dev/null -A test
==> Starting dry run: none
==> WARNING: Hook 'test' is deprecated. Replace it with 'sleep' in your config
functions: line 729: .: /usr/sbin/sleep: cannot execute binary file
==> ERROR: Failed to read sleep
==> Dry run complete, use -g IMAGE to generate a real image

Merge request reports

Loading