Skip to content

Commit

Permalink
Merge pull request #75 from ejoerns/v0/topic/fix-slotstatuspath
Browse files Browse the repository at this point in the history
install: slotstatuspath may not be set when trying to write status file
  • Loading branch information
jluebbe committed Sep 17, 2016
2 parents 721bf41 + d3b72fe commit aa0ee95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,9 @@ static gboolean launch_and_wait_default_handler(RaucInstallArgs *args, gchar* bu
slot_state->status = g_strdup("ok");
slot_state->checksum.type = mfimage->checksum.type;
slot_state->checksum.digest = g_strdup(mfimage->checksum.digest);

if (!slotstatuspath)
slotstatuspath = g_build_filename(dest_slot->mount_point, "slot.raucs", NULL);

g_message("Updating slot file %s", slotstatuspath);
install_args_update(args, g_strdup_printf("Updating slot %s status", dest_slot->name));
Expand Down

0 comments on commit aa0ee95

Please sign in to comment.