From 99f14ebbefadfbb500247118730150c0aaac0ead Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Fri, 24 Apr 2020 01:09:38 +0200 Subject: [PATCH] Fix --- image.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/image.py b/image.py index 174872d..da44d1d 100644 --- a/image.py +++ b/image.py @@ -50,7 +50,10 @@ def build(spec, args): feed = { 'focker:sha256': st_sha256 } - snap_name = new_snapshot(base, lambda: st.execute(zfs_mountpoint(name), args=args) and zfs_set_props(name, feed), name) + def atomic(): + st.execute(zfs_mountpoint(name), args=args) + zfs_set_props(name, feed) + snap_name = new_snapshot(base, atomic, name) # zfs_set_props(name, feed) # zfs_set_props(snap_name, feed) base = snap_name