From: Anthony PERARD Date: Fri, 27 Oct 2023 17:03:15 +0000 (+0100) Subject: ts-debian-*-install: Replace dots in hostnames by dashs X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b26dd9b3f361075f15fc688612b78153fbd0d03b;p=osstest.git ts-debian-*-install: Replace dots in hostnames by dashs When running ./ts-debian-di-install, hostname on the command line is interpreted by the debian installer. As the installer find it to be a FQDN, it uses part of the hostname as the domain, thus overwriting the value from the DHCP and from d-i netcfg/get_domain setting (maybe). But the result is that /etc/resolv.conf contains "search bookworm.guest.osstest" and can't find an IP for "cache". So the installation fails. Also replace ".guest.osstest" in a few other places, even if it may not be an issue. Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- diff --git a/ts-debian-di-install b/ts-debian-di-install index d84407c..06c7e1f 100755 --- a/ts-debian-di-install +++ b/ts-debian-di-install @@ -68,8 +68,8 @@ our $ram_mb= $r{arch} =~ m/^armhf/ ? 768 : 2048; our $disk_mb= 10000; our $guesthost= $gn. - ($r{"${gn}_suite"} ? ".".$r{"${gn}_suite"} : ""). - ".guest.osstest"; + ($r{"${gn}_suite"} ? "-".$r{"${gn}_suite"} : ""). + "-guest-osstest"; our $gho; sub prep () { diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index 60c95b3..99e9aca 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -46,7 +46,7 @@ our $ho= selecthost($whhost); our $ram_mb; our $disk_mb= 10000; -our $guesthost= "$gn.guest.osstest"; +our $guesthost= "$gn-guest-osstest"; our $gho; our ($kernel, $ramdisk); diff --git a/ts-debian-install b/ts-debian-install index a737bec..62db487 100755 --- a/ts-debian-install +++ b/ts-debian-install @@ -34,7 +34,7 @@ our $ram_mb= 512; our $swap_mb= 1000; our $disk_mb= 10000; -our $guesthost= "$gn.guest.osstest"; +our $guesthost= "$gn-guest-osstest"; our $gho; sub prep () {