When booting from virtiofs, we won't be able to find a root block
device. Let's gracefully handle this similar to how we don't fail
if we can't find a GPT partition table.
return r;
r = find_root(context);
+ if (r == -ENODEV)
+ return 76; /* Special return value which means "Root block device not found, so not doing
+ * anything". This isn't really an error when called at boot. */
if (r < 0)
return r;
RemainAfterExit=yes
ExecStart={{BINDIR}}/systemd-repart --dry-run=no
+# The tool returns 76 if it can't find the root block device
+SuccessExitStatus=76
# The tool returns 77 if there's no existing GPT partition table
SuccessExitStatus=77