Fix cgroup error with recent kernel + updated readme for nosuid
While using a distribution using a recent kernel (5.10), a cgroup issue is shown while trying to build a firmware:
chromite.lib.cros_build_lib.RunCommandError: return code: 32; command: mount -t cgroup -o cpuset cros /sys/fs/cgroup/cros
To fix this issue, a patch has been given by Google to update a function that should return False instead of True.
The first commit is:
- updating the documentation to add a note about it
- updating the Dockerfile to execute a script only if the kernel revision on the system is 5.10.
- creating a script that will apply the patch on "chromite" repository if it is not already applied.
This 1st commit should be reverted once this error is fixed upstream and backported to older firmware versions.
The second commit is to update the README and add a section about a possible
nosuid error if the mount option is present in the partition used.
Signed-off-by: Mylène Josserand email@example.com