Use Linux setcap command to set capabilities during Yocto build
I found the solution.
I had to add this to the libcap recipe
PACKAGECONFIG_class-native = "attr"
As the generated binaries (setcap & getcap) are depending on libattr, and this has to be configured manually.
I found that it's already configured for the target package
PACKAGECONFIG ??= "attr ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
Sorry for disturbing.
Yocto getcap: command not found
If you have a look at build output from libcap
, for instance ${WORKDIR}/packages-split
, you'll see that the following packages have been created:
libcap
libcap-bin
libcap-dbg
libcap-dev
libcap-doc
libcap-locale
libcap-staticdev
The actual library has been put into libcap
, while the helper binaries has been put into libcap-bin
.
Read-only file system issue when convert and copy file to a hard drive
The .iso
format (ISO 9660) is read-only by design, and doesn't have a system for allocating space for new files.
Instead, you can configure Yocto to bulid a .hddimg
file instead, which will be writable. It's described in image-live.bbclass
:
A
.hddimg
file which is an msdos filesystem containing syslinux, a kernel, an initrd and a rootfs image. These can be written to harddisks directly and also booted on USB flash disks (write them there withdd
).
To bulid this format, add hddimg
to IMAGE_FSTYPES
.
Related Topics
Get the Pid of a Running Playbook for Use Within the Playbook
Python Error "Attributeerror: 'Module' Object Has No Attribute 'Sha1'"
Ssh Times Out While Connecting via Ipv6 But Works with Ipv4
How to Install Python Package Installer Pip on Ubuntu 20.04 Linux
Awk or Sed to Change Column Value in a File
Comparing 16 Bit Numbers in Nasm Produces Wrong Results
Find Files in Multiple Directories Taken from List in a File
No Console Output Available on Linux When Executing Grails/Groovy
Bash Leftpad String with Spaces Inside Variable
How to Overlap and Merge Multiple Audio Files Using Ffmpeg
Write Failing Without Error on Qspi (Spansion S25Hs512T) - U-Boot
Re-Encoding Only Images of a PDF? (Or, Ghostscript Fails on 8-Bit Rgb While Optimizing)
How to Fix Numpy Dependencies Path on a Python 3.7.3 Script on Linux Frozen with Cx_Freeze 6.0B1
Update Specific Field in Text File in Specific Line
Compute Base64 Encoded Hash from a Given Hash
What Is an Absolute Pathname VS a Relative Pathname
How to Route Webcam Video to Virtual Video Device on Linux (Via Opencv)