mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-24 20:47:08 +00:00
Rework immucore (#246)
This commit is contained in:
30
pkg/schema/schema.go
Normal file
30
pkg/schema/schema.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package schema
|
||||
|
||||
import "github.com/deniswernert/go-fstab"
|
||||
|
||||
type Layout struct {
|
||||
Overlay Overlay
|
||||
OEMLabel string
|
||||
//https://github.com/kairos-io/packages/blob/94aa3bef3d1330cb6c6905ae164f5004b6a58b8c/packages/system/dracut/immutable-rootfs/30cos-immutable-rootfs/cos-generator.sh#L71
|
||||
Mounts []string
|
||||
}
|
||||
|
||||
type Overlay struct {
|
||||
// /run/overlay
|
||||
Base string
|
||||
// https://github.com/kairos-io/packages/blob/94aa3bef3d1330cb6c6905ae164f5004b6a58b8c/packages/system/dracut/immutable-rootfs/30cos-immutable-rootfs/cos-generator.sh#L22
|
||||
BackingBase string
|
||||
}
|
||||
|
||||
type LsblkOutput struct {
|
||||
Blockdevices []struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Parttype interface{} `json:"parttype,omitempty"`
|
||||
Children []struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Parttype string `json:"parttype,omitempty"`
|
||||
} `json:"children,omitempty"`
|
||||
} `json:"blockdevices,omitempty"`
|
||||
}
|
||||
|
||||
type FsTabs []*fstab.Mount
|
Reference in New Issue
Block a user