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:
parent
72b4969832
commit
e550686e06
@ -518,5 +518,5 @@ def create_hardlinks(staging_dir, log_file):
|
|||||||
"""Create hardlinks within the staging directory.
|
"""Create hardlinks within the staging directory.
|
||||||
Should happen after break_hardlinks()
|
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)
|
run(cmd, logfile=log_file, show_cmd=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user