From 5adbf6df4fd89e7531ccccfb9cec7a5314d635f0 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 15 Nov 2017 10:36:17 +0100 Subject: uefi-comboapp.bbclass: install files under pseudo do_uefiapp_deploy copies files into the /boot directory of the rootfs and thus, like do_rootfs, should run under pseudo so that the files end up being owned by root. This did not trigger the uid leak check, perhaps because the task runs later. For some (still unknown reason), sometimes the installed files did end up being owned by root, which tripped up a swupd test because the system update randomly included unexpected changes to bootx64.efi or rmc.db. With this change, they are owned by root consistently. Signed-off-by: Patrick Ohly Signed-off-by: Saul Wold --- classes/uefi-comboapp.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/uefi-comboapp.bbclass b/classes/uefi-comboapp.bbclass index 5c3ca8c9..4ecc5535 100644 --- a/classes/uefi-comboapp.bbclass +++ b/classes/uefi-comboapp.bbclass @@ -101,14 +101,14 @@ uefiapp_deploy_at() { done } -do_uefiapp_deploy() { +fakeroot do_uefiapp_deploy() { rm -rf ${IMAGE_ROOTFS}/boot/* dest=${IMAGE_ROOTFS}/boot/EFI/BOOT mkdir -p $dest uefiapp_deploy_at $dest } -do_uefiapp_deploy[depends] += "${PN}:do_uefiapp" +do_uefiapp_deploy[depends] += "${PN}:do_uefiapp virtual/fakeroot-native:do_populate_sysroot" # This decides when/how we add our tasks to the image -- cgit v1.2.3-54-g00ecf