Skip to contentSkip to conversation

#yocto apparmor recipe prevents read only file system

DISCUSSION Hans-Ulrich Schlieben 1 participant 1 message Mar 3, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

building my image with
EXTRA_IMAGE_FEATURES += "read-only-rootfs"
was prevented by the apparmor_2.13.3 recipe with

pkg_postinst_ontarget_${PN} () {
if [ ! -d /etc/apparmor.d/cache ] ; then
mkdir /etc/apparmor.d/cache
fi
}

removing the these lines for testing the image built just fine.

Why is the directory /etc/apparmor.d/cache created on initial boot and not earlier, e.g. in do_install?

Thanks for reading, any help would be great.

Best Regards

hu

pkg_postinst_ontarget