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
1
vote
2 answers
How to disable Nouveau kernel driver on CentOS
I am installing CUDA on my GPU machines. While at it, I need to disable Nouveau Kernel Driver.
I did find a solution here: https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver
But update-initramfs is not found on CentOS.
I…

user1051505
- 952
- 3
- 22
- 37
0
votes
0 answers
Trouble Booting Custom Kernel with QEMU: dracut-initqueue timeout waiting for /dev/sysvg/root
I am trying to boot a custom Linux kernel using QEMU and encountering an issue where the boot process hangs with a dracut-initqueue timeout. I compiled the kernel using a .config file from a Fedora VM and also copied the initrd.img from the same…

isomorphik
- 1
- 1
0
votes
1 answer
initramfs ipconfig vs networking dhclient DHCP request using different parameters
I have a dropbear setup that allows me to remotely ssh and unlock the encrypted luks volumes holding the root filesystem. This involves first a DHCP request by initramfs to get an IP address, and later another DHCP request after the system has…

ealfonso
- 6,622
- 5
- 39
- 67
0
votes
1 answer
Boot-Up logo is not getting diplayed on embedded linux kernel 5.4.31
I'm currently working with an STM32MP octavo board, specifically the OSD32MP1-BRK model, which is running an embedded Linux kernel version 5.4.31. As part of my project, I'm attempting to display a bootup logo on the device's screen. Currently,…

Hamza Khalid
- 1
- 1
0
votes
0 answers
How do I best instrument the Linux kernel to log early boot file open/read requests?
I'm looking for a relatively quick and straightforward way to have the Linux kernel print to console/serial (via printk - I can find a way to capture the output) any meaningful I/O requests on the early (rootfs/tmpfs/initramfs) filesystem.…

user3325588
- 151
- 1
- 4
0
votes
0 answers
printing with printf in /init
I am playing with linux booting for educationl purposes.
Here is my micromalistic init program:
#include
int main () {
printf ("hello\n");
while (1) { }
return 0;
}
Compiled with gcc -static init.c -o…

exebook
- 32,014
- 33
- 141
- 226
0
votes
0 answers
Yocto - initramfs image: "The recipe is trying to install files into a shared area when those files already exist..."
I want to build an initramfs image unfortunately I get error "The recipe texas-image-initramfs is trying to install files into a shared area when those files already exist" every time. I tried the bitbake -c cleanall commands for both texas-image…

grandzello
- 43
- 4
0
votes
1 answer
Unlocking multiple LUKS-encrypted volumes with a single password at boot (Gentoo, encrypted ZFS root, genkernel initramfs)
With this post I am sharing a solution with the community.
I have a Gentoo system installed on a ZFS pool consisting of multiple encrypted devices. It is normally decrypted at boot as described in this post. In the file /etc/default/grub I add to…

D-FENS
- 1,438
- 8
- 21
0
votes
0 answers
Kernel panic - not syncing: Requested init /init failed (error -2)
Attaching a bit more of the boot log.
HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
HugeTLB registered 64.0 KiB…

rish_1n4
- 21
- 3
0
votes
1 answer
initramfs-tools in buildroot
I am using initramfs-tools hooks to run custom commands during pre-boot or post-boot on Ubuntu.
(https://manpages.ubuntu.com/manpages/xenial/man8/initramfs-tools.8.html)
Now I want to try same thing for my embedded device running Linux in buildroot…
0
votes
0 answers
Getting a panic at populate_rootfs with bigger initramfs
I'm using buildroot with initramfs. And it is working fine with uImages smaller than 14M.
But when I add packages and get bigger, this kernel panic occurs.
Kernel command line: noinitrd ramdisk_size=30720 console=ttyS0,115200n8 oops=panic panic=10…

varta
- 3,296
- 1
- 17
- 18
0
votes
1 answer
How can I run a program on a tty?
I need tty interactive on onboot of linuxkit.
Now, setsid -w agetty -a root -L 38400 ttyS0 vt100 is working.
But I want to run a specific program. Is there a way?
Thanks to "Mahdy Mirzade" for reply,
$ setsid sh -c 'exec ls <> /dev/tty2 >&0…

user212942
- 197
- 3
- 18
0
votes
1 answer
Facing kernel panic issue with Yocto: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Scenario: I am working in Yocto linux project. I have created my own rootfs with tar.gz extension. And I have built linux kernel (using bitbake linux-kernel-rt). I am not able to load kernel and rootfs.
Can anyone explain what can be the…

Sarveshk
- 1
- 2
0
votes
1 answer
How early can I send data to a serial port on Linux boot?
I have an external serial peripheral that needs to be setup on Linux boot, on an embedded system.
What I need is sending a short configuration string as early as possible during system boot, so my procedure is simply
Set port to 115200 bps
Send a…

LuC
- 347
- 2
- 10
0
votes
1 answer
How to run custom program in initramfs
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…