upgraded: link dynamically, chroot during exec
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 23 Apr 2017 00:28:13 +0000 (02:28 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 29 May 2017 19:43:55 +0000 (21:43 +0200)
commit056d8ddda8d5236ac94d6897b674291679c05e91
treeeb61154db8e055474ceab605b165fcaf87bf3a7d
parent7c6cf551df1eb4b59b2576c73db7ad30ac4ce396
upgraded: link dynamically, chroot during exec

The chroot ensures we don't reference anything on the rootfs and is
reverted after the upgraded exec. While we're at it, also improve error
handling a bit.

This change also required changes to sysupgrade, as the dynamically linked
version is expected at a different location, and libraries need to be made
available.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
system.c
upgraded/CMakeLists.txt
upgraded/upgraded.c
watchdog.c
watchdog.h