From 7c3e14f0f17942e4ecf7122e7a7d005df0fa6f71 Mon Sep 17 00:00:00 2001 From: yo Date: Sat, 3 Jun 2023 11:18:42 +0200 Subject: [PATCH] version bump, README update --- README.md | 8 +++++++- cmd/root.go | 8 +++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4761385..d9cc97e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,13 @@ Support iocage jails, so they can coexist. Gocage is meant to be a complete jail management tool with network, snapshots, jail cloning support and a web interface. This is the hypothetic future. Gocage can handle multiple datastores, so you can have jails on HDD storage and jails on SSD storage. - +From v0.33b, due to multi ZFS pool support, gocage is no longer 100% compatible with iocage. +Zfs datasets now should be specified with the ZFS pool. e.g. : + +Config.Jail_zfs = 1 +Config.Jail_zfs_dataset = myzfspool/poudriere +Config.Jail_zfs_mountpoint = none + List jails ---------- diff --git a/cmd/root.go b/cmd/root.go index c8ae6fa..4b23445 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,7 +14,7 @@ import ( ) const ( - gVersion = "0.33a" + gVersion = "0.33b" // TODO : Get from $jail_zpool/defaults.json MIN_DYN_DEVFS_RULESET = 1000 @@ -518,10 +518,8 @@ func WriteConfigToDisk(jailName string, changeauto bool, forceWrite bool) { fmt.Printf("ERROR marshaling config: %s\n", err.Error()) } - fmt.Printf("DEBUG: Will write config to disk, with content:\n") - fmt.Printf(string(marshaled)) - - + //fmt.Printf("DEBUG: Will write config to disk, with content:\n") + //fmt.Printf(string(marshaled)) if os.WriteFile(j.ConfigPath, []byte(marshaled), 0644); err != nil { fmt.Printf("Error writing config file %s: %v\n", j.ConfigPath, err)