mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-12 13:17:08 +00:00
Deal nicely with already mounted errors
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
package constants
|
||||
|
||||
import "errors"
|
||||
|
||||
const PersistentStateTarget = "/usr/local/.state"
|
||||
|
||||
func DefaultRWPaths() []string {
|
||||
// Default RW_PATHS to mount if there are none defined
|
||||
return []string{"/etc", "/root", "/home", "/opt", "/srv", "/usr/local", "/var"}
|
||||
}
|
||||
|
||||
var ErrAlreadyMounted = errors.New("already mounted")
|
||||
|
Reference in New Issue
Block a user