TODO: Browse jailed ZFS dataset to migrate them

This commit is contained in:
yo 2022-07-10 20:56:17 +02:00
parent 31961b8e3a
commit 52916f9ae9

View File

@ -88,6 +88,10 @@ func MigrateJail(args []string) {
}
fmt.Printf("Done\n")
// TODO: Browse jailed ZFS dataset to migrate them (see poudriere for example)
// zfs send -R src/poudriere@init | zfs receive -Fu dest/poudriere
dsconfdest := strings.Join([]string{destDS.ZFSDataset, "jails", jn}, "/")
fmt.Printf("Migrate jail config dataset to %s: ", dsconfdest)
if err := zfsCopy(fmt.Sprintf("%s@gocage_mig_init", dsconf), dsconfdest); err != nil {