🌱 activate LVM volumes at the start (#113)

This commit is contained in:
Itxaka
2023-04-19 16:23:51 +02:00
committed by GitHub
parent 6bf656cd21
commit f1c3aad0ee
7 changed files with 46 additions and 4 deletions

View File

@@ -586,3 +586,10 @@ func (s *State) WaitForSysrootDagStep(g *herd.Graph) error {
}
}))
}
// LvmActivation will try to activate lvm volumes/groups on the system.
func (s *State) LVMActivation(g *herd.Graph) error {
return g.Add(cnst.OpLvmActivate, herd.WithCallback(func(ctx context.Context) error {
return internalUtils.ActivateLVM()
}))
}