mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-08-27 00:56:43 +00:00
5329381354
The device filter accepted sd, hd, vd and nvme names, so the xvd names that a Xen guest presents never entered the scan. On such a guest the whole detection ran on an empty list and the script fell through to the xvda fallback, which takes the first Xen disk without looking at any of them. Accept the xvd names in the filter. A Xen disk now goes through the same classification, kernel search and driver sort as any other disk, so a guest with more than one disk gets a chosen disk rather than the first one. The fallback stays for the case where the scan still finds nothing. The nvme branch of the filter is anchored at the same time, so a name only matches when it starts with nvme.