3-xen-orchestra-install #4

Merged
hygienic-books merged 84 commits from 3-xen-orchestra-install into main 2023-10-22 14:23:54 +00:00
Showing only changes of commit b9da09402a - Show all commits

View File

@ -105,7 +105,7 @@ function we_have_exactly_one_part () {
function get_drive_id () { function get_drive_id () {
local drive_id_list drive_id_single local drive_id_list drive_id_single
drive_id_list="$(find -L /dev/disk/by-id -samefile "${1:?}" | sort)" drive_id_list="$(find -L /dev/disk/by-partuuid -samefile "${1:?}" | sort)"
drive_id_single="$(head -n1 <<<"${drive_id_list}")" drive_id_single="$(head -n1 <<<"${drive_id_list}")"
if [[ "$(wc -l <<<"${drive_id_single}")" -eq '1' ]] && [[ "$(wc -c <<<"${drive_id_single}")" -gt '1' ]]; then if [[ "$(wc -l <<<"${drive_id_single}")" -eq '1' ]] && [[ "$(wc -c <<<"${drive_id_single}")" -gt '1' ]]; then
printf -- '%s' "${drive_id_single}" printf -- '%s' "${drive_id_single}"