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
This commit is contained in:
Colin Walters 2018-10-17 16:10:40 +00:00 committed by Atomic Bot
parent 5183c8f35e
commit 1db0db3d7a

View File

@ -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++;