[New Feature]: Detect Rocky Linux and AlmaLinux as LinuxType RedHat
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 78/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Calme
- Stack technique
- csharp
- Domaine
- devops, operating-systems
Piste de recherche
Commencez par les expressions régulières de détection de LinuxType dans LabXml/Machines/OperatingSystem.cs et le code correspondant dans LabXml/Machines/Machine.cs, puis comparez la modification associée pour Oracle Linux dans #1722. Mettez à jour la correspondance des distributions et inspectez l’expression régulière VersionString pour vérifier la même lacune. Le travail est considéré comme terminé lorsque Rocky Linux et AlmaLinux sont résolus en LinuxType.RedHat et signalent leurs versions ; les tests de déploiement de bout en bout sont indiqués comme indisponibles dans l’issue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
The LinuxType regex does not include Rocky Linux or AlmaLinux, so both resolve to LinuxType.Unknown - exactly the problem reported for Oracle Linux in #1593 and fixed for Oracle by #1722.
LabXml/Machines/OperatingSystem.cs (line 355 in develop d71b6623), and the matching code in LabXml/Machines/Machine.cs:
if (Regex.IsMatch(OperatingSystemName, "CentOS|Red Hat|Fedora|Oracle", IgnoreCase))
return LinuxType.RedHat;
Per #1593, an Unknown Linux is subsequently treated as SuSE and Install-Lab fails while copying data.
Why it matters
CentOS Linux is end of life and CentOS Stream is a rolling preview, so Rocky Linux and AlmaLinux are what most RHEL-family lab users run today. Neither can currently be deployed by AutomatedLab.
Suggested change
Add both to the regex in OperatingSystem.cs and Machine.cs:
-"CentOS|Red Hat|Fedora|Oracle"
+"CentOS|Red Hat|Fedora|Oracle|Rocky|Alma"
The VersionString regex likely needs the same treatment so that a version is reported. Note that the #1722 description already flags Kali as missing there.
Testing status
Not tested end to end. These distributions cannot be deployed without the change, so I could not verify that the rest of the RedHat path works for them.
One data point in favour: booting a Rocky Linux 9 installer against an AutomatedLab-created OEMDRV partition - by swapping the DVD of an existing lab VM - shows Rocky picking up AutomatedLab's kickstart correctly and starting an automated text-mode install. So the kickstart AutomatedLab generates is at least accepted by Rocky's anaconda.
I am happy to test properly and contribute the change if you confirm it is wanted.
Environment used for the investigation: AutomatedLab 5.61.0, PowerShell 7.6.4, Windows 11 (10.0.26200), Hyper-V generation 2 VMs.
This text was written by Claude and reviewed by Andreas Jordan.
- Langage dominant
- PowerShell
- Étoiles
- 2.2k
- Forks
- 383
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de AutomatedLab/AutomatedLab
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
AutomatedLab/AutomatedLab#1854 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
AutomatedLab/AutomatedLab#1858 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
AutomatedLab/AutomatedLab#1857 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
AutomatedLab/AutomatedLab#1856 ·
-
[Bug]: Invoke-LabCommand cannot reach Linux machines - omi-psrp-server no longer installs on el8+ Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
AutomatedLab/AutomatedLab#1853 ·
Toutes les issues de AutomatedLab/AutomatedLab
Issues similaires
-
agent-ready documentation needs-triage
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
-
area-deployment area-integrations triage:bot-seen
Difficulté 2/5 Une demi-journée Accessibilité débutants 86/100
-
agentic-workflows
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
refactor
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
[CI] Nightly Clang build broken: structured binding captured in a lambda in FileDataSource.cpp Ouvertebug build
Difficulté 1/5 Moins d'une heure Accessibilité débutants 91/100
facebookincubator/velox#19194 ·