mirror of
https://github.com/kairos-io/immucore.git
synced 2025-07-24 11:15:55 +00:00
* Add awk and gawk in the initrafms to allow growpart to work. Also include libraries which dracut fails to auto-detect Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> * Bump yip to get this fix: https://github.com/mudler/yip/pull/110 as part of this: https://github.com/kairos-io/kairos/issues/1831 Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> * Fix lint errors Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> --------- Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
51 lines
1.8 KiB
Go
51 lines
1.8 KiB
Go
package constants
|
|
|
|
import "errors"
|
|
|
|
func DefaultRWPaths() []string {
|
|
// Default RW_PATHS to mount if not override by the cos-layout.env file
|
|
return []string{"/etc", "/root", "/home", "/opt", "/srv", "/usr/local", "/var"}
|
|
}
|
|
|
|
func GetCloudInitPaths() []string {
|
|
return []string{"/system/oem", "/oem/", "/usr/local/cloud-config/"}
|
|
}
|
|
|
|
// GenericKernelDrivers retusn a list of generic kernel drivers to insmod during uki mode
|
|
// as they could be useful for a lot of situations.
|
|
func GenericKernelDrivers() []string {
|
|
return []string{"virtio", "ata_piix", "cdrom", "ext4", "iso9660", "usb_storage", "ahci",
|
|
"virtio_blk", "virtio_scsi", "virtio_net", "nvme", "overlay", "libata", "sr_mod", "simpledrm"}
|
|
}
|
|
|
|
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"
|
|
OpInitramfsHook = "initramfs-hook"
|
|
OpLoadConfig = "load-config"
|
|
OpMountTmpfs = "mount-tmpfs"
|
|
OpRemountRootRO = "remount-ro"
|
|
OpUkiInit = "uki-init"
|
|
OpSentinel = "create-sentinel"
|
|
OpUkiUdev = "uki-udev"
|
|
OpUkiBaseMounts = "uki-base-mounts"
|
|
OpUkiKernelModules = "uki-kernel-modules"
|
|
OpWaitForSysroot = "wait-for-sysroot"
|
|
OpLvmActivate = "lvm-activation"
|
|
OpKcryptUnlock = "unlock-all"
|
|
OpKcryptUpgrade = "upgrade-kcrypt"
|
|
PersistentStateTarget = "/usr/local/.state"
|
|
LogDir = "/run/immucore"
|
|
LinuxFs = "ext4"
|
|
)
|