[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v2 1/2] uboot: do not use readlink on xsm policy
The policy is not a symlink, so readlink will return nothing. We cannot use readlink -f because that will return an absolute path and we need a path relative to the filesystem root (in this case /boot). Keep flaskpolicy=$flaskpolicy as a shell variable rather than unescaping the uses (so they are interpreted by Perl) to easy any future changes. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- Replaces: uboot: use "readlink -f" --- Osstest/Debian.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 6784024..3a0993b 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -162,7 +162,7 @@ sub setupboot_uboot ($$$$) { $flask_commands = <<END; setenv flask_policy_addr_r 0x1200000 -flaskpolicy=`readlink /boot/$flaskpolicy` +flaskpolicy=$flaskpolicy ext2load scsi 0 \\\${flask_policy_addr_r} \$flaskpolicy fdt mknod /chosen module\@2 fdt set /chosen/module\@2 compatible "xen,xsm-policy" "xen,multiboot-module" -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |