Skip to content

Commit

Permalink
Utils: Remove distinst specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl committed Nov 9, 2023
1 parent 7cdde6a commit 08a0147
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,6 @@ namespace Utils {
string hostname = get_ubiquity_compatible_hostname () ?? ("elementary-os" + "-" + get_chassis ());
hostname += "-" + get_machine_id ().substring (0, 8);

// If the automatic hostname logic fails in some way, it's possible we may generate an invalid
// hostname. We could fix this by trimming traling/leading hyphens or other invalid characters.
// But it's probably a bad hostname anyway, so just fallback
if (!Distinst.validate_hostname (hostname)) {
hostname = "elementary-os";
}

return hostname;
}
}

0 comments on commit 08a0147

Please sign in to comment.