summaryrefslogtreecommitdiff
path: root/sysupgrade.h
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-09-11 08:58:15 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-09-11 08:58:15 +0200
commitb8238df0fb9585b5ec9acbc0f4285dad953f2192 (patch)
tree1f9be41a5fbcdcf818f561bc266c83aab6c2ff97 /sysupgrade.h
parent0f3c1366bb927e483abfae23dee0d15e26f87064 (diff)
downloadprocd-b8238df0fb9585b5ec9acbc0f4285dad953f2192.tar.gz
sysupgrade: support "backup" attribute
This new attribute allows passing path of the backup archive. It provides much more flexibility than hardcoding /tmp/sysupgrade.tgz. It may help avoiding some cp/mv for user-provided backup archive. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'sysupgrade.h')
-rw-r--r--sysupgrade.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysupgrade.h b/sysupgrade.h
index c84e494..268e2fd 100644
--- a/sysupgrade.h
+++ b/sysupgrade.h
@@ -16,7 +16,8 @@
struct blob_attr;
-void sysupgrade_exec_upgraded(const char *prefix, char *path, char *command,
+void sysupgrade_exec_upgraded(const char *prefix, char *path,
+ const char *backup, char *command,
struct blob_attr *options);