The immediate need for the change is to allow to capture the expected
LUKS volume key hash and record it to the generated crypttab but it
also seems to make sense to not generate crypttab/fstab before we know
that partition creation succeeded as fstab/crypttab entries are bogus
otherwise.
if (r < 0)
return r;
- r = context_fstab(context);
- if (r < 0)
- return r;
-
- r = context_crypttab(context);
- if (r < 0)
- return r;
-
r = context_update_verity_size(context);
if (r < 0)
return r;
if (r < 0)
return r;
+ r = context_fstab(context);
+ if (r < 0)
+ return r;
+
+ r = context_crypttab(context);
+ if (r < 0)
+ return r;
+
(void) context_dump(context, /* late= */ true);
context_disarm_auto_removal(context);