Crearea unei imagini petalinux
Înainte de orice build trebuie setat parametrul kernel.apparmor_restrict_unprivileged_userns pentru a permite utilizarea namespace-urilor utilizator (nu sudo):
# Allow the user namespaces required by BitBake during the build.
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
# Retry the image build; completed tasks will be reused where possible.
petalinux-build
# Restore the host restriction after the build command finishes.
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=1