From: Wei Liu Subject: [PATCH OSSTEST 1/2] uboot: use "readlink -f" Date: Tue, 24 Mar 2015 11:45:51 +0000 Message-ID: <1427197552-29042-2-git-send-email-wei.liu2@citrix.com> References: <1427197552-29042-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaNHW-0004jE-Kr for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:46:02 +0000 In-Reply-To: <1427197552-29042-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: ian.jackson@eu.citrix.com, Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org If the path is not a symlink, readlink by default returns empty string. Use "-f" to always return canonical path. This fixes the problem that xenpolicy file not getting loaded (because it is not a symlink). Also change another spot that calls readlink to get xen binary path in case in the future we decide to not use symlink. Signed-off-by: Wei Liu --- Osstest/Debian.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 6784024..b829878 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -162,7 +162,7 @@ sub setupboot_uboot ($$$$) { $flask_commands = </boot/boot.xen <