Skip to content

Commit

Permalink
Add loopdevice implementation
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Dec 20, 2023
1 parent 0bc93e0 commit 71447be
Show file tree
Hide file tree
Showing 8 changed files with 796 additions and 50 deletions.
7 changes: 7 additions & 0 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ const (
Autofs = "auto"
Block = "block"

// Maxium number of nested symlinks to resolve
MaxLinkDepth = 4

// Kernel and initrd paths
KernelModulesDir = "/lib/modules"
KernelPath = "/boot/vmlinuz"
Expand All @@ -84,6 +87,8 @@ const (
GrubOEMEnv = "grub_oem_env"
GrubEnv = "grubenv"
GrubDefEntry = "Elemental"
GrubFallback = "default_fallback"
GrubPassiveSnapshots = "passive_snaps"
ElementalBootloaderBin = "/usr/lib/elemental/bootloader"

// Mountpoints of images and partitions
Expand Down Expand Up @@ -170,6 +175,8 @@ const (
// Snapshotters
MaxSnaps = 4
LoopDeviceSnapshotterType = "loopdevice"
ActiveSnapshot = "active"
PassiveSnapshot = "passive_%d"
)

func GetKernelPatterns() []string {
Expand Down
Loading

0 comments on commit 71447be

Please sign in to comment.