Skip to content

Commit d38c3f3

Browse files
authored
Merge pull request #1164 from kernelkit/rauc-fixes
Rauc integration fixes
2 parents 99c87d0 + 6bd00d8 commit d38c3f3

File tree

6 files changed

+25
-2
lines changed

6 files changed

+25
-2
lines changed

board/aarch64/rootfs/etc/rauc/system.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ mountprefix=/var/lib/rauc/mnt
66
bundle-formats=-plain
77
max-bundle-download-size=1073741824
88

9+
[log.event-log]
10+
filename=/var/log/upgrade-json.log
11+
format=json-pretty
12+
max-size=1M
13+
max-files=5
14+
915
[keyring]
1016
directory=/etc/rauc/keys
1117

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set G_MESSAGES_DEBUG=nocolor
22
service [2345] <service/dbus/running> \
3-
env:-/etc/default/rauc log:prio:user.notice \
3+
env:-/etc/default/rauc \
44
rauc service $RAUC_ARGS -- Software update service
55

board/riscv64/rootfs/etc/rauc/system.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ mountprefix=/var/lib/rauc/mnt
66
bundle-formats=-plain
77
max-bundle-download-size=1073741824
88

9+
[log.event-log]
10+
filename=/var/log/upgrade-json.log
11+
format=json-pretty
12+
max-size=1M
13+
max-files=5
14+
915
[keyring]
1016
directory=/etc/rauc/keys
1117

board/x86_64/rootfs/etc/rauc/system.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ mountprefix=/var/lib/rauc/mnt
77
bundle-formats=-plain
88
max-bundle-download-size=1073741824
99

10+
[log.event-log]
11+
filename=/var/log/upgrade-json.log
12+
format=json-pretty
13+
max-size=1M
14+
max-files=5
15+
1016
[keyring]
1117
directory=/etc/rauc/keys
1218

doc/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ All notable changes to the project are documented in this file.
2020
- cli: new `terminal reset` and `terminal resize` convenience commands
2121

2222
### Fixes
23+
- Fix #1080: Error message in log from rauc, deprecated 'Install' D-Bus method
2324
- Fix #1100: Reduce DHCP client logging verbosity by 70% and include interface
2425
names in log messages for easier troubleshooting
2526
- Fix #1119: CLI UX regression, restore proper behavior for `no enabled` command

src/confd/src/infix-system-software.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,18 @@ static int infix_system_sw_install(sr_session_ctx_t *session, uint32_t sub_id,
3131
sr_error_t srerr = SR_ERR_OK;
3232
GError *raucerr = NULL;
3333
RaucInstaller *rauc;
34+
GVariant *args;
3435

3536
DEBUG("url:%s", url);
3637

3738
rauc = infix_system_sw_new_rauc();
3839
if (!rauc)
3940
return SR_ERR_INTERNAL;
4041

41-
rauc_installer_call_install_sync(rauc, url, NULL, &raucerr);
42+
/* Empty args dictionary for InstallBundle method, for now. */
43+
args = g_variant_new("a{sv}", NULL);
44+
45+
rauc_installer_call_install_bundle_sync(rauc, url, args, NULL, &raucerr);
4246
if (raucerr) {
4347
sr_session_set_netconf_error(session, "application", "operation-failed",
4448
NULL, NULL, raucerr->message, 0);

0 commit comments

Comments
 (0)