Previously these binaries would have been included in the regular
("tools") dist file, whereas they really belong in the xen one.
Install into /boot/efi/EFI/osstest ready for use when chainloading.
Note that /boot/efi is (or should be) a VFAT filesystem. So a bit of
care is needed WRT symlinks etc. This is also what prevents us from
just including /boot/efi/EFI/osstest/xen.efi in the dist tarball since
untarring over a VFAT needs a little care WRT the case of directories
etc.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
mv \$mvfiles xeninstall/boot/.
fi
fi
+ if test -d install/usr/lib64/efi/; then
+ if test -f install/usr/lib64/efi/xen.efi; then
+ mkdir -p xeninstall/usr/lib64/efi
+ mvfiles=`find install/usr/lib64/efi -name 'xen[a-z]*' -prune -o -name 'xen*' -print`
+ mv \$mvfiles xeninstall/usr/lib64/efi/.
+ fi
+ fi
END
}
target_extract_jobdistpath($ho, $part, "path_${part}dist",
$r{"${part}buildjob"}, \%distpath);
}
+ if (target_file_exists($ho, "/usr/lib64/efi/xen.efi")) {
+ target_cmd_root($ho,<<END);
+ mkdir -p /boot/efi/EFI/osstest
+ # /boot/efi is VFAT, so dereference the symlink
+ cp -vL /usr/lib64/efi/xen.efi /boot/efi/EFI/osstest
+END
+ }
target_cmd_root($ho, '/sbin/ldconfig');
}