Use absolute path for hardlink

Hardlink command can be installed in /usr/sbin, where it is not visible
to non-priviledged users. They can still run it, but don't have it in
their PATH.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-04-17 15:20:09 +02:00
parent 72b4969832
commit e550686e06
1 changed files with 1 additions and 1 deletions

View File

@ -518,5 +518,5 @@ def create_hardlinks(staging_dir, log_file):
"""Create hardlinks within the staging directory.
Should happen after break_hardlinks()
"""
cmd = ["hardlink", "-c", "-vv", staging_dir]
cmd = ["/usr/sbin/hardlink", "-c", "-vv", staging_dir]
run(cmd, logfile=log_file, show_cmd=True)