distro/*: move mount point allow list to disk

All distributions have exactly the same list of allowed mountpoint
customization points. Therefore move it to `disk` and share it
between all distros.
This commit is contained in:
Christian Kellner 2022-08-06 22:25:07 +02:00
parent 2b03a839f0
commit 1ca2efe6cf
5 changed files with 8 additions and 20 deletions

View file

@ -54,6 +54,10 @@ const (
XBootLDRPartitionGUID = "BC13C2FF-59E6-4262-A352-B275FD6F7172"
)
var MountpointAllowList = []string{
"/", "/var", "/opt", "/srv", "/usr", "/app", "/data", "/home", "/tmp",
}
// Entity is the base interface for all disk-related entities.
type Entity interface {
// IsContainer indicates if the implementing type can