make init snapshot

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-22 23:13:38 +00:00
parent 4e04f62762
commit 002020b8fa
1 changed files with 5 additions and 0 deletions

View File

@ -257,6 +257,11 @@ func main() {
log.Fatalf("can't import qcow2: %v", err)
}
err = run("sudo", "zfs", "snapshot", zvol+"@init")
if err != nil {
log.Fatalf("can't make a base snapshot: %v", err)
}
err = tmpl.ExecuteTemplate(buf, "base.xml", struct {
Name string
UUID string