Skip to main content

Questions tagged [mkinitcpio]

A modular initramfs image creation tool.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

How to prevent the re-creation of default mkinitcpio preset file upon kernel update?

Since I’m using custom mkinitcpio presets to generate UKIs, I deleted the default preset file inside /etc/mkinitcpio.d/ that came during system installation. Unfortunately, when pacman updates the ...
Bogey Jammer's user avatar
0 votes
0 answers
40 views

HoloISO/Archlinux Running pacman -Syu(u) results in the next boot becoming an endless black screen

I have been running both pacman -Syu and -Syuu with the following packages: glibc make icu qt6-base linux-firmware pcaman-contrib archlinux-contrib gcc-libs sh python wireplumber pipewire lha base-...
Let A be the Unknown's user avatar
0 votes
1 answer
28 views

mkinitcpio and bundled files' location

after passing files to mkinitcpio via FILES or BINARIES in mkinitcpio.conf, where exactly do they end up? let's say I added FILES=(/usr/lib/firmware/edid/abc.bin) for example, with the above line: # ...
gcb's user avatar
  • 418
2 votes
1 answer
2k views

How do I uncompress or unarchive the contents of initramfs img file in Arch Linux?

I have been using Arch Linux for a while and studying about the initramfs. I thought of looking into the contents of the file to get a clear idea of it. I googled for various ways to peek through the ...
Panther Coder's user avatar
1 vote
1 answer
332 views

Data-loss safety of "cryptsetup luksOpen <root device>" between suspend and resume

I'm setting up suspend-to-disk and resume in an 2021.12.x Arch Linux install. My question is about safely (without data-loss) unlocking partitions when resuming. Here is my configuration. The ...
nishanthshanmugham's user avatar
0 votes
0 answers
235 views

Need help figuring out why this LUKS setup isn't working

Problem: I'm trying to set up an encrypted raid0 device with btrfs. I'm able to get beyond the first password prompt to enter the LUKS device but after that I get an error from fsck saying something ...
Dominic's user avatar
  • 169
1 vote
0 answers
559 views

How to debug a loop in systemd-shutdown / initrd ? (Arch Linux)

I've recently installed Arch Linux to a virtual disk, under a custom configuration for root on ZFS. This was in using some scripting I've put together for managing a multiboot configuration, with ...
Sean Champ's user avatar
0 votes
0 answers
498 views

Does it matter if the `encrypt` mkinitcpio hook is included on a system without full disk encryption?

Can I share an /etc/mkinitcpio.conf between two Arch Linux systems, where one requires the encrypt hook for LUKS disk encryption, and the other does not? i.e. will it cause a problem booting the ...
OJFord's user avatar
  • 1,995
0 votes
1 answer
410 views

Can no longer boot to RAID array after update

I recently updated my system and after a reboot I get the following: ERROR: device ‘UUID=...’ not found. Skipping fsck. mount: /new_root: can’t find UUID=... You are now being dropped into an ...
embedded.kyle's user avatar
2 votes
1 answer
1k views

Arch boot: Echo asterisks when typing cryptsetup password

I am trying to setup my initramfs with mkinitcpio -P so it decrypts my LUKS/LVM partition containing the root file system on startup. I followed the steps on here . Everything already works fine, by ...
Bernd's user avatar
  • 31
3 votes
1 answer
543 views

A Small GUI Linux System with UEFI completely running on RAMDisk

I am developing a POS System and I am planning to use Linux. My requirements are as follows UEFI Support. (Running on x86 and x86_64) No Storage Drive so completely running on RAM and persistence ...
NJP's user avatar
  • 53
0 votes
1 answer
586 views

Add encrypt hook to mkinitcpio to arch linux

i want to enable encrypt hook. Regulary, you go with nano /etc/mkinitcpio.conf and add the encrypt hook as archwiki says. I want to automate that step with bash commands. mkinitcpio -A encrypt add ...
Ioannis Gavriilidis's user avatar
9 votes
2 answers
25k views

No mkinitcpio preset present

My laptop lost battery during an update, so the linux kernel got truncated. After arch-chrooting into it and reinstalling linux, it's OK, but /boot/initramfs-linux.img (and the fallback) are empty. ...
R Harrington's user avatar
1 vote
2 answers
16k views

mkinitcpio : command not found

I am a beginner in Linux when i install arch Linux dual boot , download base system then i go to chroot then make a ram using a command: mkinitcpio -p Linux. when i write it, gives me command not ...
Ali Mostafa's user avatar
3 votes
1 answer
919 views

Which format is the correct format to use for mkinitcpio.conf?

I am confused about which is the proper formatting to use within mkinitcpio.conf ... I have noticed sometimes double quotes are used and other times parentheses to close off the users desired hooks, ...
Anonymous's user avatar
  • 533
0 votes
1 answer
752 views

Arch Linux stuck at "Loading version 240" after modifying configs

I'm trying to get GPU passthrough to work on a VM. I've been following this video https://www.youtube.com/watch?v=6FI31QDtyy4. The differences between what I did and what he did in the video was ...
Cubxity's user avatar
1 vote
2 answers
13k views

initramfs - ERROR: device '/dev/mapper/vg0-root' not found, Skipping fsck

Upon booting my Dell XPS 15 9560 running Arch, I am being dropped into an emergency shell because my devices aren't being found starting version 239 A password is required to access the luks volume: ...
Cyn's user avatar
  • 61
0 votes
2 answers
800 views

Can I trust initramfs and vmlinuz images?

I am running an Arch Linux installation on my laptop with the following partition scheme: /dev/sda1 is my /boot partition, which is also my ESP /dev/sda2 is my LUKS encrypted root partition I use ...
Scrumplex's user avatar
  • 103
2 votes
1 answer
4k views

Is the order of NVIDIA kernel modules in mkinitcpio important?

I'm troubleshooting a solution for Nvidia screen tearing cited on the Archlinux wiki which instructs to enable DRM kernel mode setting: nvidia 364.16 adds support for DRM kernel mode setting. To ...
xtian's user avatar
  • 583
7 votes
3 answers
19k views

'/lib/modules/4.9.8-1-ARCH' is not a valid kernel module directory

I am attempting to repair and upgrade an Arch Linux system. I boot off of a Live USB which is a newer version than the original install. Then I mount the sda and chroot to its mount point. When I run ...
Code-Guru's user avatar
  • 709
2 votes
1 answer
9k views

How to create ZImage?

Task I have an .img file(cpio, for initramfs). Actually, it is result of mkinitcpio. U-boot is used as a boot loader. But U-boot needs either UImage or ZImage. I need to glue U-boot with created cpio ...
skap's user avatar
  • 123
1 vote
1 answer
496 views

Creating 32-bit initramfs on a 64-bit machine

I am on a 64-bit kernel and want to run a 32-bit kernel in QEMU. Once I had the compressed kernel image I tried creating the initramfs image using mkinitcpio but this only created an image with 64-bit ...
cadaniluk's user avatar
  • 145
11 votes
1 answer
37k views

How to manually boot Arch Linux from preboot emergency shell?

I broke an Arch Linux installation. Let's say I made a typo in the PARTUUID string. The result is that the boot process can't mount the root file system and stops at the mkinitcpio preboot stage with ...
Pro Backup's user avatar
  • 5,014
4 votes
1 answer
8k views

How to boot into root btrfs file system with minimal initramfs without udev hook?

Arch Linux is UEFI booted from USB flash drive with GPT and three partitions: EFI (vfat file system) root (btrfs file system, was converted from ext4) home (btrfs file system, was converted from ext4)...
Pro Backup's user avatar
  • 5,014
6 votes
1 answer
6k views

LUKS password not being requested by dmcrypt / encrypt hook at boot

At boot I see: :: running hook [encrypt] A password is required to access the volume: Command requires device and mapped name as arguments Command requires device and mapped name as arguments ...
Tom Hale's user avatar
  • 31.2k
2 votes
1 answer
614 views

Sources of mkinitcpio MODULES=, BINARIES= and HOOKS= entries

How do I find out what will be added the cpio initrd image generated by mkinitcpio given an entry in either: MODULES= BINARIES= HOOKS= For example, what files are included when adding BINARIES="...
Tom Hale's user avatar
  • 31.2k
5 votes
1 answer
11k views

How to create ASCII cpio archive (SVR4 with no CRC)?

I have a file in /boot/initramfs.gz extract it using tar -xzvf initramfs.gz -C ./ I got a file initramfs. └──╼ $ file initramfs initramfs: ASCII cpio archive (SVR4 with no CRC) It can be open using ...
dotslash's user avatar
  • 193
1 vote
1 answer
1k views

Arch mkinitcpio grub boot fails on edit

I'm experiencing this strange behavior. I am using ArchLinux, generated boot things with mkinitcpio, and using Grub2 (not legacy). When booting, and pressing "e" to edit the entry (to see boot ...
Etienne Bruines's user avatar
0 votes
1 answer
37 views

Archlinux ARM Rasperry Pi decryption fail

I have created an encrypted Archlinux partition on my SD card, but currently I am unable to decrypt it. I am using the key "Xö&(4n=%YF3Ü!BN" which includes german letters. So for this I have ...
Greeneco's user avatar
  • 401
1 vote
1 answer
156 views

Archlinux ARM Rasperry Pi login buffer display and decryption fail

I have put the Archlinux Arm on my SD card and the first time I have done this it was all correct and worked well but I had to "reinstall" everything for several reason. So now I am doing the same ...
Greeneco's user avatar
6 votes
2 answers
6k views

Encrypt hook in mkinitcpio.conf for full system encryption USB drive Arch install

I have installed Arch Linux on a USB drive with full system encryption using LUKS. The Arch wiki as usual walked me through almost everything. The only issue I ran into was using setting up the hooks ...
StrongBad's user avatar
  • 5,301
3 votes
3 answers
813 views

Why are there internet utilities in my initial ramdisk?

I have a fairly standard initial ramdisk created using mkinitcpio. I'm on Arch GNU/Linux. A while ago I got dropped to a rescue shell and poked around in the /bin of the ramdisk to see what was ...
strugee's user avatar
  • 15.1k
2 votes
0 answers
2k views

mkinitcpio did not include modules.devname in cpio image

I'm running Arch Linux with a customized kernel. I modified the PKGBUILD from abs, and renamed the package to linux-custom. The PKGBUILD is fine, after installation I could see the modules.devname in ...
daisy's user avatar
  • 54.8k