Questions tagged [mkinitcpio]

A modular initramfs image creation tool.

Filter by
Sorted by
Tagged with
1 vote
1 answer
92 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 ...
user avatar
  • 113
0 votes
0 answers
59 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 ...
user avatar
0 votes
0 answers
183 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 ...
user avatar
0 votes
0 answers
87 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 ...
user avatar
  • 1,588
0 votes
1 answer
138 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 ...
user avatar
1 vote
1 answer
384 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 ...
user avatar
  • 21
3 votes
1 answer
187 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 ...
user avatar
  • 53
0 votes
1 answer
246 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 ...
user avatar
6 votes
2 answers
9k 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. ...
user avatar
1 vote
2 answers
9k 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 ...
user avatar
3 votes
1 answer
554 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, ...
user avatar
  • 459
0 votes
1 answer
570 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 ...
user avatar
1 vote
2 answers
10k 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: ...
user avatar
0 votes
2 answers
611 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 ...
user avatar
  • 103
2 votes
1 answer
2k 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 ...
user avatar
  • 563
4 votes
3 answers
12k 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 ...
user avatar
  • 639
2 votes
1 answer
7k 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 ...
user avatar
  • 123
1 vote
1 answer
390 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 ...
user avatar
  • 145
9 votes
1 answer
28k 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 ...
user avatar
  • 4,244
4 votes
1 answer
6k 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)...
user avatar
  • 4,244
5 votes
1 answer
4k 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 ...
user avatar
  • 24.6k
2 votes
1 answer
382 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="...
user avatar
  • 24.6k
5 votes
1 answer
8k 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 ...
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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
  • 321
1 vote
1 answer
152 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 ...
user avatar
6 votes
2 answers
5k 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 ...
user avatar
  • 4,791
3 votes
3 answers
708 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 ...
user avatar
  • 14.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 ...
user avatar
  • 50.7k