immucore/internal/constants/constants.go
Itxaka 9a480df901 Re-enable longer RW_PATHS
Looks like the problem comes from the custom mounts overriding this
values

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-22 12:21:02 +01:00

32 lines
784 B
Go

package constants
import "errors"
func DefaultRWPaths() []string {
// Default RW_PATHS to mount if not overriden by the cos-layout.env file
return []string{"/etc", "/root", "/home", "/opt", "/srv", "/usr/local", "/var"}
}
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"
)