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
3
votes
1 answer
Why is my initramfs script not being run?
Running Ubuntu 18.04 LTS. I've put a script in the following location:
/usr/share/initramfs-tools/scripts/init-bottom/dothis
dothis is set as +x. I've run sudo update-initramfs -u which appears to update the initramfs contents just fine. I've…

iluomo
- 151
- 1
- 7
2
votes
1 answer
Debian 12, error while procesing initramfs-tools while updating
Every time I update the system (with sudo apt update && sudo apt upgrade) I get an error that ends in:
Errors were encountered while processing:
initramfs-tools
Searching someone sugested to use sudo apt-get auto-remove && apt-get clean && apt-get…

Gerardo
- 81
- 7
2
votes
1 answer
creating Initramfs in Yocto
I wanted to create initramfs in yocto. Therefore I created a custom recipe, added following lines;
require recipes-core/images/core-image-minimal.bb
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
It built successfully. I am not sure if all works properly.…

czrty
- 101
- 1
- 9
2
votes
1 answer
Yocto Initramfs Transaction Error adding cryptsetup package
I am using Yocto Warrior on Ubuntu 18.04 LTS and the meta-tegra layer ( https://github.com/madisongh/meta-tegra ) to build a root file system for my NVIDIA Jetson Nano.
I want to encrypt a certain partition on my SD Card and so I need the cryptsetup…

PhilBot
- 748
- 18
- 85
- 173
2
votes
1 answer
Configuring initramfs with buildroot and uboot
I am attempting to get initramfs working on an embedded linux device using buildroot and uboot. I have been following the guides have have initramfs set up in the buildroot and kernel config. However as far as I can tell it is not being built into…

Dan
- 176
- 1
- 11
1
vote
0 answers
ARM/U-Boot: kernel v3.18 does not boot with ramdisk in FIT image
I am struggling to get a Broadcom ARM9 platform to boot from a kernel that does not have a built-in initrd image.
I have successfully compiled the vendor kernel and U-Boot for the platform. Note that both kernel and U-Boot are forks from upstream,…

hwmartin
- 157
- 1
- 12
1
vote
0 answers
What is the first steps in diagnosing a hanging init?
Context:
I aim to boot a busybox environment on a simulated Rocket-cored SoC using litex_sim, through the use of OpenSBI+linux. Upon reaching the point where the init process is started, the application hangs. See below:
[ 6.463240] Run /init as…

HotSauce
- 23
- 4
1
vote
0 answers
USB host not working in initramfs [Yocto]
I am writing to you to ask you about the following: I am working on a custom embedded Linux distro for a Zynq700 based board. One of the features to be added is support for USB in host mode, which I have achieved.
This way, with rootfs I have a…

afinfante
- 61
- 1
- 7
1
vote
0 answers
RaspberryPi 4: tftp boot issues with udpsvd / qemu
I build a minimal linux system with buildroot to provide some services like tftp and a other things. From that i want to boot my rpi4 over network with initramfs. Currently i do this from an ubuntu virtual machine, but the footprint is a little bit…

wolfbiker1
- 89
- 4
1
vote
1 answer
Change kernel switch_root with JasperE84/root-ro script
I'm currently using a slightly modified script https://github.com/JasperE84/root-ro for booting system from squashfs image. It works almost as expected.
It does boot to the new read-only filesystem from the image, however, it boots with the kernel…

Uros
- 61
- 5
1
vote
0 answers
kernel panic after addition of the "file" utility, resulting in bulky rootfs.cpio
I am using an Initramfs for a custom chip, currently on an FPGA platform. Before generating the linux image using make, I ran make menuconfig and added the 'file' utility. It increased the rootfs.cpio size by 3 times, while the vmlinux size was…

emb_linux17
- 21
- 6
1
vote
1 answer
Correct way to switch_root
I'm having a ton (and a half) of problems setting up booting for my embedded target; situation is:
I have an embedded target with a rather small, but reliable, Flash (16M bytes) and a possibly large (currently 8GB), but rather unreliable, SD…

ZioByte
- 2,690
- 1
- 32
- 68
1
vote
1 answer
ubuntu stuck on initramfs kernel panic exit code-0x00000100
I have a system with ubuntu 18.04, and i edited profile file with wrong directory(and reloaded the profile with source), after few seconds all the windows has started shutting down.
on restart i get now the BusyBox 1.27.2 shell which get me to…

neorus
- 477
- 1
- 6
- 19
1
vote
1 answer
QEMU networking and getty issues
I'm trying to create a minimalist setup for an ARM based virtual machine using qemu. I am following the following guide to do so.
I am running QEMU with the following command
qemu-system-arm -M vexpress-a9 -dtb…

AjB
- 890
- 13
- 34
1
vote
2 answers
Generate custom initramfs image with additional configuration files
I would like to create an initramfs image for Debian Stretch which includes additional configuration files (say /etc/a.conf).
What do I have to do prior to running mkinitramfs -o initrd.img in order for the image to include such files?

rookie099
- 2,201
- 2
- 26
- 52