diff --git a/cmd/root.go b/cmd/root.go index cce33e1..c406090 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,7 +14,7 @@ import ( ) const ( - gVersion = "0.38" + gVersion = "0.38a" // TODO : Get from $jail_zpool/defaults.json MIN_DYN_DEVFS_RULESET = 1000 diff --git a/cmd/update.go b/cmd/update.go index 02a16f7..7ecbfe5 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -5,6 +5,7 @@ import ( "fmt" //"log" "time" + "strings" ) @@ -62,7 +63,13 @@ func UpdateJail(args []string) { fmt.Printf("Error getting jail: %s\n", err) continue } - + + // We cant update basejail as system is readonly + if strings.EqualFold(cj.Config.Jailtype, "basejail") { + fmt.Printf("%s is a basejail using %s system files. Please update %s!\n", cj.Name, cj.Config.Origin, cj.Config.Origin) + continue + } + fmt.Printf(" > Snapshot jail %s\n", cj.Name) // Set snapshot name dt := time.Now()