I have built initramfs which I want to use for setting up dm-verity. For testing purposes I don't switch_root and after boot it stays in initramfs. However I need the tool veritysetup. I have it precompiled and copied to /usr/sbin on initramfs, but when I run it on the platform it says - /bin/sh: /usr/sbin/veritysetup: not found. Any ideas how to make it execute?
How to run custom program in initramfs
507 Views Asked by boomvoyage21 At
1
There are 1 best solutions below
Related Questions in LINUX
- How do I recursively find and replace only in files named index.php on Linux webserver?
- passing text with \n as one argument in shell
- kernel module does not print packet info
- How to send ESC/POS commands to thermal printer in Linux
- (x64 Nasm) Writeline function on Linux
- How do I set the Hive user to something different than the Spark user from within a Spark program?
- Default priority of thread with SCHED_FIFO
- Calling a python function with options from shell script
- How to split a directory into parts without compressing or archiving?
- Cross compile simple standard C program on Linux for Mac
- How to offload NAPI poll function to workqueue
- python netifaces - How to get currently used network interface
- Unexpected output from function
- mingw-64 conflicting declarations when cross-compiling
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
Related Questions in EMBEDDED
- PHP don't use temp file for upload
- Sparkfun SC16IS750 does not work on Raspberry Pi
- Reserve memory space in m_text memory region of FLASH on embedded target
- SAE J1939 Standards Collection -- How much is necessary?
- How to call multiple slaves for Spi data transmission?
- Deployment over GPRS to embedded devices
- Changing just one byte in SD card sector
- Comparion of values won't work without delay
- Better to pass struct, or pointer to struct?
- STM32F4 Handling peripheral error while making a DMA Transfer (RX)
- USB programming, transfer file from iOS device to Embedded os device?
- using Diab, dcc 5.9.4 to compile a windows executable
- does b64_pton() work if input contains special characters? I am using it in C code
- u-boot select boot partition based on GPIO state
- Why is a write to a memory-mapped peripheral register not actioned (LPC43xx)?
Related Questions in KERNEL
- Are Berkeley Packet Filter opcode values implementation defined?
- Raspberry PI Compute Module - SPI1
- Is there any way to get a lru list in Linux kernel?
- Android Studio - HAX kernel Module not installed
- How to determine system value for _POSIX_PATH_MAX
- Different privileges in kernel module execution
- Buildroot custom kernel under 1MB
- Add/remove process from kernel runqueue
- Is it possible to limit data traffic in kernel USB drivers?
- "Segmentation fault" when `rmmod` or `modprobe -r`
- Intercept ELF loader in linux kernel: fs/binfmt_elf.c file via loadable kernel module
- Best way to handle ERESTARTSYS in kthread?
- Purpose and usage of firmware packages on Linux
- In linux every process is given a 4GB of virtual address space considering a 32-bit architecture
- How to make a scanf() type function in a 32bit os in c?
Related Questions in BOOT
- u-boot select boot partition based on GPIO state
- Mounting GEOM_ELI Encrypted ZFS Pool as root
- Android / Cannot start app at boot on certain devices (e.g. Xiaomi)
- Piping echo into sendmail in rc.local fails
- ARM Trustzone, Open Virtualization SDK Boot stuck
- How to write a BIOS program that runs before the OS?
- Linux Kernel init fails in encrypted filesystem
- Cannot boot Arch Linux after installing it next to windows 10
- Android - Launch service at Boot but without Boot Completed Permission
- Embedded Linux Newbie Questions
- Nodejs forever, run on boot with --watch not working
- android wrong boot up time
- Start Service after boot
- linux deploy, kali, start an app service after its boots up
- Why kexts are loaded by Boot Loader but not after Kernel gets the control
Related Questions in INITRAMFS
- Buildroot initramfs boots up into non-interactive busybox shell
- Correct way to switch_root
- Why is the appended `ROOTFS_POSTPROCESS_COMMAND` not getting executed when the deploy artifact it installs is rebuilt?
- When bundling an initramfs with a kernel, where should the INITRAMFS_IMAGE variable get set?
- Memory issues introduced when updating Linux kernel version
- kernel panic after addition of the "file" utility, resulting in bulky rootfs.cpio
- Execute an interactive script in systemd-based initramfs
- How early can I send data to a serial port on Linux boot?
- Facing kernel panic issue with Yocto: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
- Is there a way to add kexec functionality to busybox initrd?
- USB host not working in initramfs [Yocto]
- RaspberryPi 4: tftp boot issues with udpsvd / qemu
- Getting a panic at populate_rootfs with bigger initramfs
- How to run custom program in initramfs
- Configuring initramfs with buildroot and uboot
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, I have done this. For a hint let me first give a simple clue first. For veritysetup command to work in your initramfs you also need to copy all the dependent libraries (same architecture) to your libs folder inside initramfs.