From 1db0db3d7aa98e3db98ba93f7fc2e17305f95007 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 17 Oct 2018 16:10:40 +0000 Subject: [PATCH] sysroot: Add error prefixing to deployment parsing I think this is where the bare `readlinkat` came from in https://github.com/ostreedev/ostree/issues/1459 `Error setting up sysroot: readlinkat: No such file or directory` Closes: #1757 Approved by: jlebon --- src/libostree/ostree-sysroot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 8a916289..8485edec 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -612,6 +612,10 @@ parse_deployment (OstreeSysroot *self, error)) return FALSE; + g_autofree char *errprefix = + g_strdup_printf ("Parsing deployment %i in stateroot '%s'", treebootserial, osname); + GLNX_AUTO_PREFIX_ERROR(errprefix, error); + const char *relative_boot_link = boot_link; if (*relative_boot_link == '/') relative_boot_link++;