summaryrefslogtreecommitdiffstats
path: root/src/home/homework-luks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/homework-luks.c')
-rw-r--r--src/home/homework-luks.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c
index 294c052720..f7015529e7 100644
--- a/src/home/homework-luks.c
+++ b/src/home/homework-luks.c
@@ -3240,9 +3240,11 @@ int home_resize_luks(
if (r < 0)
return r;
- r = home_setup_done(setup);
- if (r < 0)
- return r;
+ if (!FLAGS_SET(flags, HOME_SETUP_RESIZE_DONT_UNDO)) {
+ r = home_setup_done(setup);
+ if (r < 0)
+ return r;
+ }
log_info("Everything completed.");