From e550686e06ce7b805f189a5d33f1f83ce8587189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 17 Apr 2019 15:20:09 +0200 Subject: [PATCH] Use absolute path for hardlink MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ář --- pungi/phases/createiso.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/phases/createiso.py b/pungi/phases/createiso.py index 505ca37b..d3127553 100644 --- a/pungi/phases/createiso.py +++ b/pungi/phases/createiso.py @@ -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)