Skip to content

Commit

Permalink
Add FsEncryptedSquashfs Fstype constant
Browse files Browse the repository at this point in the history
FsEncryptedSquashfs corresponds to an encrypted LUKS container with an
squashfs filesystem inside.

Signed-off-by: Marcelo E. Magallon <[email protected]>
  • Loading branch information
schebro authored and Marcelo Magallon committed Jun 28, 2019
1 parent f5e78ee commit 321a569
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pkg/sif/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func fstypeStr(ftype Fstype) string {
return "Archive"
case FsRaw:
return "Raw"
case FsEncryptedSquashfs:
return "Encrypted squashfs"
}
return "Unknown fs-type"
}
Expand Down
9 changes: 5 additions & 4 deletions pkg/sif/sif.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ type Fstype int32

// List of supported file systems
const (
FsSquash Fstype = iota + 1 // Squashfs file system, RDONLY
FsExt3 // EXT3 file system, RDWR (deprecated)
FsImmuObj // immutable data object archive
FsRaw // raw data
FsSquash Fstype = iota + 1 // Squashfs file system, RDONLY
FsExt3 // EXT3 file system, RDWR (deprecated)
FsImmuObj // immutable data object archive
FsRaw // raw data
FsEncryptedSquashfs // Encrypted Squashfs file system, RDONLY
)

// Parttype represents the different SIF container partition types (system and data)
Expand Down

0 comments on commit 321a569

Please sign in to comment.