1
0

Implements fallback if rootfs image not found

This commit is contained in:
2018-12-01 20:18:43 +00:00
parent b2f50efa2a
commit 1488d4b081
2 changed files with 42 additions and 0 deletions

View File

@ -150,6 +150,12 @@ func (dt DistroType) MarshalTOML() (data []byte, err error) {
return
}
type ByRootFS []KernelInfo
func (a ByRootFS) Len() int { return len(a) }
func (a ByRootFS) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a ByRootFS) Less(i, j int) bool { return a[i].RootFS < a[j].RootFS }
type KernelInfo struct {
DistroType DistroType
DistroRelease string // 18.04/7.4.1708/9.1