disk: rename MountpointAllowList -> MountpointPolicies
Now that the mountpoint allow is is actually a trie of path policies we should rename it to better refelct its contents.
This commit is contained in:
parent
de52e024a0
commit
3c3f1b4969
5 changed files with 5 additions and 5 deletions
|
|
@ -52,7 +52,7 @@ const (
|
|||
XBootLDRPartitionGUID = "BC13C2FF-59E6-4262-A352-B275FD6F7172"
|
||||
)
|
||||
|
||||
var MountpointAllowList = NewPathPolicies(map[string]PathPolicy{
|
||||
var MountpointPolicies = NewPathPolicies(map[string]PathPolicy{
|
||||
"/": {Exact: true},
|
||||
"/var": {},
|
||||
"/opt": {},
|
||||
|
|
|
|||
|
|
@ -696,7 +696,7 @@ func (t *imageType) checkOptions(customizations *blueprint.Customizations, optio
|
|||
return fmt.Errorf("Custom mountpoints are not supported for ostree types")
|
||||
}
|
||||
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointAllowList)
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointPolicies)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ func (t *imageType) checkOptions(customizations *blueprint.Customizations, optio
|
|||
|
||||
mountpoints := customizations.GetFilesystems()
|
||||
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointAllowList)
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointPolicies)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -663,7 +663,7 @@ func (t *imageType) checkOptions(customizations *blueprint.Customizations, optio
|
|||
return fmt.Errorf("Custom mountpoints are not supported for ostree types")
|
||||
}
|
||||
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointAllowList)
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointPolicies)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -599,7 +599,7 @@ func (t *imageType) checkOptions(customizations *blueprint.Customizations, optio
|
|||
return fmt.Errorf("Custom mountpoints are not supported for ostree types")
|
||||
}
|
||||
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointAllowList)
|
||||
err := disk.CheckMountpoints(mountpoints, disk.MountpointPolicies)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue