Questions tagged [mkinitcpio]
A modular initramfs image creation tool.
31
questions
0
votes
0
answers
133
views
Splash file (bmp) with UKI (efi) file with dracut or mkinitcpio
I want to use a splash file converted from a JPG to a BMP (required by dracut and mkinitcpio when making a UKI file). I've been successful with only one such file, but I don't know why.
The kernel ...
2
votes
1
answer
589
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 ...
1
vote
1
answer
284
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 ...
0
votes
0
answers
202
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 ...
1
vote
0
answers
438
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 ...
0
votes
0
answers
300
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 ...
0
votes
1
answer
335
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 ...
2
votes
1
answer
967
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 ...
3
votes
1
answer
400
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 ...
0
votes
1
answer
468
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 ...
8
votes
2
answers
19k
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. ...
1
vote
2
answers
13k
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 ...
3
votes
1
answer
833
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, ...
0
votes
1
answer
729
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 ...
1
vote
2
answers
12k
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:
...
0
votes
2
answers
739
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 ...
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 ...
7
votes
3
answers
16k
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 ...
2
votes
1
answer
8k
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 ...
1
vote
1
answer
453
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 ...
10
votes
1
answer
34k
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 ...
4
votes
1
answer
7k
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)...
6
votes
1
answer
5k
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
...
2
votes
1
answer
558
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="...
5
votes
1
answer
10k
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 ...
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 ...
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 ...
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 ...
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 ...
3
votes
3
answers
792
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 ...
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 ...