Template:Yocto Build Release IMX: Difference between revisions

From Variscite Wiki
No edit summary
Line 37: Line 37:
  $ sudo usermod -aG docker ${USER}
  $ sudo usermod -aG docker ${USER}
  # Logout and login again for the permissions to take effect.
  # Logout and login again for the permissions to take effect.
For Ubuntu 24.04:
Ubuntu 24.04 introduced additional [https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-unprivileged-user-namespace-restrictions unprivileged user namespace restrictions].
They must be disabled when using Variscite's docker container to build the image.
Disable this restriction on the entire system for one boot:
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
Disable this restriction using a persistent setting by adding a new file (/etc/sysctl.d/60-apparmor-namespace.conf) with the following contents:
# /etc/sysctl.d/60-apparmor-namespace.conf
kernel.apparmor_restrict_unprivileged_userns=0
|
|



Revision as of 21:59, 18 November 2024