2018-09-05 14:54:38 -04:00
|
|
|
package wclayer
|
2018-03-19 18:57:30 -04:00
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
|
|
|
// ProcessBaseLayer post-processes a base layer that has had its files extracted.
|
|
|
|
// The files should have been extracted to <path>\Files.
|
|
|
|
func ProcessBaseLayer(path string) error {
|
|
|
|
err := processBaseImage(path)
|
|
|
|
if err != nil {
|
|
|
|
return &os.PathError{Op: "ProcessBaseLayer", Path: path, Err: err}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// ProcessUtilityVMImage post-processes a utility VM image that has had its files extracted.
|
|
|
|
// The files should have been extracted to <path>\Files.
|
|
|
|
func ProcessUtilityVMImage(path string) error {
|
|
|
|
err := processUtilityImage(path)
|
|
|
|
if err != nil {
|
|
|
|
return &os.PathError{Op: "ProcessUtilityVMImage", Path: path, Err: err}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|