BUGFIX: path to root dataset was wrong

This commit is contained in:
yo 2022-07-04 20:47:19 +02:00
parent 92d8beb58f
commit 51dc7d1588

View File

@ -80,7 +80,7 @@ func MigrateJail(args []string) {
fmt.Printf("Done\n")
// Snapshot filesystem
dsdata := strings.Join([]string{curDS.ZFSDataset, "iocage", "jails", jn, "root"}, "/")
dsdata := strings.Join([]string{curDS.ZFSDataset, "jails", jn, "root"}, "/")
fmt.Printf("Snapshot %s: ", dsdata)
if err := zfsSnapshot(dsdata, "gocage_mig_init"); err != nil {
fmt.Printf("Error: %v\n", err)