static bool early_skip_setup_check(int argc, char *argv[]) {
bool found_deserialize = false;
- int i;
/* Determine if this is a reexecution or normal bootup. We do the full command line parsing much later, so
* let's just have a quick peek here. Note that if we have switched root, do all the special setup things
* anyway, even if in that case we also do deserialization. */
- for (i = 1; i < argc; i++) {
+ for (int i = 1; i < argc; i++)
if (streq(argv[i], "--switched-root"))
return false; /* If we switched root, don't skip the setup. */
else if (streq(argv[i], "--deserialize"))
found_deserialize = true;
- }
return found_deserialize; /* When we are deserializing, then we are reexecuting, hence avoid the extensive setup */
}