Documentation ¶
Index ¶
- Constants
- func GetBuildDiskDefaultPackages() map[string]string
- func GetCloudInitPaths() []string
- func GetDefaultISOImage() []string
- func GetDefaultISOUEFI() []string
- func GetDefaultSquashfsCompressionOptions() []string
- func GetDefaultSquashfsOptions() []string
- func GetDefaultXorrisoBooloaderArgs(root, bootFile, bootCatalog, hybridMBR string) []string
Constants ¶
View Source
const ( GrubConf = "/etc/cos/grub.cfg" GrubOEMEnv = "grub_oem_env" GrubDefEntry = "cOs" BiosPartName = "p.bios" EfiLabel = "COS_GRUB" EfiPartName = "p.grub" ActiveLabel = "COS_ACTIVE" PassiveLabel = "COS_PASSIVE" SystemLabel = "COS_SYSTEM" RecoveryLabel = "COS_RECOVERY" RecoveryPartName = "p.recovery" StateLabel = "COS_STATE" StatePartName = "p.state" PersistentLabel = "COS_PERSISTENT" PersistentPartName = "p.persistent" OEMLabel = "COS_OEM" OEMPartName = "p.oem" ISOLabel = "COS_LIVE" MountBinary = "/usr/bin/mount" EfiDevice = "/sys/firmware/efi" LinuxFs = "ext4" LinuxImgFs = "ext2" SquashFs = "squashfs" EfiFs = "vfat" BiosFs = "" EfiSize = uint(64) OEMSize = uint(64) StateSize = uint(15360) RecoverySize = uint(8192) PersistentSize = uint(0) BiosSize = uint(1) ImgSize = uint(3072) HTTPTimeout = 60 PartStage = "partitioning" IsoMnt = "/run/initramfs/live" RecoveryDir = "/run/cos/recovery" StateDir = "/run/cos/state" OEMDir = "/run/cos/oem" PersistentDir = "/run/cos/persistent" ActiveDir = "/run/cos/active" EfiDir = "/run/cos/efi" RecoverySquashFile = "recovery.squashfs" IsoRootFile = "rootfs.squashfs" IsoEFIPath = "/boot/uefi.img" ActiveImgFile = "active.img" PassiveImgFile = "passive.img" RecoveryImgFile = "recovery.img" IsoBaseTree = "/run/rootfsbase" CosSetup = "/usr/bin/cos-setup" AfterInstallChrootHook = "after-install-chroot" AfterInstallHook = "after-install" BeforeInstallHook = "before-install" AfterResetChrootHook = "after-reset-chroot" AfterResetHook = "after-reset" BeforeResetHook = "before-reset" LuetCosignPlugin = "luet-cosign" LuetMtreePlugin = "luet-mtree" LuetDefaultRepoURI = "quay.io/costoolkit/releases-green" LuetRepoMaxPrio = 1 LuetDefaultRepoPrio = 90 UpgradeActive = "active" UpgradeRecovery = "recovery" ChannelSource = "system/cos" UpgradeRecoveryDir = "/run/initramfs/live" TransitionImgFile = "transition.img" TransitionSquashFile = "transition.squashfs" RunningStateDir = "/run/initramfs/cos-state" // TODO: converge this constant with StateDir/RecoveryDir in dracut module from cos-toolkit ActiveImgName = "active" PassiveImgName = "passive" RecoveryImgName = "recovery" GPT = "gpt" BuildImgName = "elemental" //TODO these paths are abitrary, coupled to package live/grub2 and assuming xz // I'd suggest using `/boot/kernel` and `/boot/initrd` IsoKernelPath = "/boot/kernel.xz" IsoInitrdPath = "/boot/rootfs.xz" // TODO would be nice to discover these ISO loader values instead of hardcoding them // These values are coupled with package live/grub2 IsoHybridMBR = "/boot/x86_64/loader/boot_hybrid.img" IsoBootCatalog = "/boot/x86_64/boot.catalog" IsoBootFile = "/boot/x86_64/loader/eltorito.img" // Default directory and file fileModes DirPerm = os.ModeDir | os.ModePerm FilePerm = 0666 NoWriteDirPerm = 0555 | os.ModeDir TempDirPerm = os.ModePerm | os.ModeSticky | os.ModeDir // Eject script EjectScript = "#!/bin/sh\n/usr/bin/eject -rmF" )
Variables ¶
This section is empty.
Functions ¶
func GetBuildDiskDefaultPackages ¶ added in v0.0.15
func GetCloudInitPaths ¶
func GetCloudInitPaths() []string
func GetDefaultISOImage ¶ added in v0.0.15
func GetDefaultISOImage() []string
func GetDefaultISOUEFI ¶ added in v0.0.15
func GetDefaultISOUEFI() []string
func GetDefaultSquashfsCompressionOptions ¶ added in v0.0.15
func GetDefaultSquashfsCompressionOptions() []string
func GetDefaultSquashfsOptions ¶
func GetDefaultSquashfsOptions() []string
GetDefaultSquashfsOptions returns the default options to use when creating a squashfs
func GetDefaultXorrisoBooloaderArgs ¶ added in v0.0.14
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.