Add grub edit var command (#846)

This commit is contained in:
Itxaka
2025-07-22 08:29:35 +02:00
committed by GitHub
parent cd76c616a1
commit 87b5654fc9
3 changed files with 102 additions and 0 deletions

View File

@@ -474,6 +474,9 @@ func ReadPersistentVariables(grubEnvFile string, c *agentConfig.Config) (map[str
if strings.HasPrefix(a, "#") {
continue
}
if a == "" {
continue
}
splitted := strings.Split(a, "=")
if len(splitted) == 2 {
vars[splitted[0]] = splitted[1]