upgrade: Fix to actually deploy on change
This commit is contained in:
parent
c2b242f200
commit
60a00a8544
@ -127,11 +127,15 @@ rpmostree_builtin_upgrade (int argc,
|
||||
{
|
||||
g_print ("No update available.\n");
|
||||
}
|
||||
else if (opt_reboot)
|
||||
else
|
||||
{
|
||||
gs_subprocess_simple_run_sync (NULL, GS_SUBPROCESS_STREAM_DISPOSITION_INHERIT,
|
||||
cancellable, error,
|
||||
"systemctl", "reboot", NULL);
|
||||
if (!ostree_sysroot_upgrader_deploy (upgrader, cancellable, error))
|
||||
goto out;
|
||||
|
||||
if (opt_reboot)
|
||||
gs_subprocess_simple_run_sync (NULL, GS_SUBPROCESS_STREAM_DISPOSITION_INHERIT,
|
||||
cancellable, error,
|
||||
"systemctl", "reboot", NULL);
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user