From 002020b8fab9d58b8ab7271437835b688dfaf3e6 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 22 May 2021 23:13:38 +0000 Subject: [PATCH] make init snapshot Signed-off-by: Christine Dodrill --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 10507c1..a9f32e6 100644 --- a/main.go +++ b/main.go @@ -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