mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-19 09:43:14 +00:00
According to our config files only /var /etc and /srv are needed as minimal to boot the system. Lets check if that is true Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
33 lines
757 B
Go
33 lines
757 B
Go
package constants
|
|
|
|
import "errors"
|
|
|
|
func DefaultRWPaths() []string {
|
|
// Default RW_PATHS to mount
|
|
// If none defined, your system wont even boot probably
|
|
return []string{"/var", "/etc", "/srv"}
|
|
}
|
|
|
|
var ErrAlreadyMounted = errors.New("already mounted")
|
|
|
|
const (
|
|
OpCustomMounts = "custom-mount"
|
|
OpDiscoverState = "discover-state"
|
|
OpMountState = "mount-state"
|
|
OpMountBind = "mount-bind"
|
|
|
|
OpMountRoot = "mount-root"
|
|
OpOverlayMount = "overlay-mount"
|
|
OpWriteFstab = "write-fstab"
|
|
OpMountBaseOverlay = "mount-base-overlay"
|
|
OpMountOEM = "mount-oem"
|
|
|
|
OpRootfsHook = "rootfs-hook"
|
|
OpLoadConfig = "load-config"
|
|
OpMountTmpfs = "mount-tmpfs"
|
|
|
|
OpSentinel = "create-sentinel"
|
|
|
|
PersistentStateTarget = "/usr/local/.state"
|
|
)
|