initramfs contains the initial root filesystem in a cpio archive. The archive is unpacked and loaded into RAM in order for the OS (usually Linux) to boot as part of the startup process.
Questions tagged [initramfs]
48 questions
0
votes
1 answer
Buildroot initramfs boots up into non-interactive busybox shell
I am using Buildroot to build an initramfs image for my IMX Board. On the board, I run a custom Linux 4.19.35 Linux kernel (4.19.35-gexxxxxx) and a custom U-Boot bootloader. Hence, do not require these from Buildroot. My use case is only the…

Harsh
- 7
- 4
0
votes
1 answer
Create just smallest possible rootfs using yocto
I want to create am minimal Linux system. I have compiled the kernel myself, but I want to use Yocto to build my rootfs. How can I build the smallest possible rootfs to startup and system and open a shell without building the kernel? Also, how can I…

josecm
- 413
- 3
- 15
0
votes
1 answer
Using initramfs to load keys and setup IMA/EVM during early boot
I am trying to create an init script in Debian Buster kernel v5.7.13 that loads some keys for Linux's IMA subsystem. Following the instructions on this man page for evmctl, I wrote/copied a script at /etc/initramfs-tools/scripts/local-top/ima.sh…

peachykeen
- 4,143
- 4
- 30
- 49
0
votes
0 answers
Manually compiled kernel fails to boot: stuck in initramfs prompt
I am trying to compile a custom kernel for my old laptop (it's a Dell Inspiron 1525, with a Core 2 Duo processor, 2GB of memory and a HDD -- not SSD). In this computer I have 3 partitions, 2 small ones (10GB each) with the roots of distros that I…

Xito Dev
- 89
- 7
0
votes
1 answer
kernel not able to run /init in initramfs in linux android 10 kernel version 4.9
I have created a custom initramfs using the below command in my custom initramfs directory:
find . | cpio --quiet -H newc -o | gzip -9 -n > ../diaginitrd.img
Then I built a custom bootimage with the above cpio using the command
mkbootimg --kernel …

shivam seth
- 1
- 1
0
votes
1 answer
"Authentication failed" in Wayland application
First of all, sorry for a potentially silly question, it's my first attempt to work with Wayland. But i've googled and could not find anything related.
The system which i develop, is very time-critical in running graphicall applications, so i've…

Diver
- 33
- 3
0
votes
1 answer
"cpio: premature end of archive" when using lsinitramfs
I am trying to unpack an initramfs image obtained from an embedded system, but I get errors like cpio: premature end of archive when using any utility for unpacking the file. I'll paste the file signature and some of the things I've tried down…

snek_case
- 339
- 2
- 10
0
votes
2 answers
I am trying to create a tpm2-based auto unlock sh script, but the script fails with file not found
I am trying to create a TPM-based unlock script using tpm2-tools with instructions from Tevora Secure boot tpm2. I have set up the key, loaded it with cryptsetup luksAddKey secret.bin, then tested it using tpm2_unlock -c 0x81000000 --auth…

Edward Anguiano
- 1
- 1
0
votes
2 answers
How can I repack initramfs image on RHEL7?
On RHEL 7 the initramfs image file format changed. To unpack the image the skipcpio is needed. for example
/usr/lib/dracut/skipcpio /boot/initramfs-3.10.0-957.el7.x86_64.img | gunzip -c | cpio -idmv
I succeeded to unpack the image with the command…

Oded
- 31
- 6
0
votes
2 answers
Is there a way to add kexec functionality to busybox initrd?
I have 3 MB of SPI flash on my board and I am able to pack the bzImage, busybox initrd and coreboot ROM into this SPI flash. I am also able to boot to the shell , all using the ROM kernel-as-bootloader.
I have bigger kernel on the USB device. I am…

Naveen
- 7,944
- 12
- 78
- 165
0
votes
1 answer
dropbear-initramfs can't find modprobe and blkid
I'm trying to have dropbear remote ssh boot on a debian system which is encrypted with lvm crypto luks.
I can get it work on my raspberry pi but not on my regular system
steps:
1 install debian with encrypted LVM
ls -l /lib/modules/ |awk -F" "…

soroush
- 1
0
votes
1 answer
busybox init script. Mount not found
I'm running in to what appears to be a bit of an odd one.
Base machine is Ubuntu 18.04. I'm experimenting with creating a custom initramfs + init script to use with custom compiled kernels that are being used with qemu instances.
From the…

Twirrim
- 406
- 8
- 16
0
votes
1 answer
Custom built kernel produces non-bootable initramfs on Centos 7
I've been building my own kernel (4.19.37) and have no issues during build (make) or install (make install_modules + make install). Everything seems to go fine until I execute grub2-mkconfig -o /boot/grub2/grub.cfg. When executing this command,…

DrTarr
- 922
- 2
- 15
- 34
0
votes
1 answer
OverlayFS as root FS: should I mount --move upper/lower/workdir to new root?
I work on an embedded system which boots from a SquashFS image located on a UBIFS formatted SPI flash. I added OverlayFS over / (root) support so that we can change all the files around but get them reset after reboot. All the OverlayFS magic is…

c_spk
- 169
- 16
-1
votes
1 answer
Execute an interactive script in systemd-based initramfs
I want to start an interactive script in a systemd-based initramfs. I use mkinitcpio with the systemd-hook to create it. My problem is, that there is no input supplied to the script started as a service. The script is started and I see his output,…

Alai
- 123
- 1
- 8