A modular initramfs image creation tool.
Questions tagged [mkinitcpio]
31 questions
10
votes
1 answer
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 the error message:
Your are now being dropped…
Pro Backup
- 4,686
- 12
- 50
- 82
8
votes
2 answers
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. Also, /etc/mkinitcpio.d/linux.preset is empty. How…
R Harrington
- 213
- 1
- 2
- 8
7
votes
3 answers
'/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 mkinitcpio -p linux, I get the error from the…
Code-Guru
- 699
- 3
- 6
- 19
6
votes
1 answer
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
Command requires device and mapped name as…
Tom Hale
- 28,728
- 32
- 139
- 229
6
votes
2 answers
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 in mkinitcpio. The Arch wiki says that for a USB…
StrongBad
- 5,151
- 9
- 47
- 73
5
votes
1 answer
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 ark. But I want to change some files in this file…
dotslash
- 193
- 1
- 2
- 6
4
votes
1 answer
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)
The btrfs partitions have no sub-volumes and…
Pro Backup
- 4,686
- 12
- 50
- 82
3
votes
1 answer
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 storage data(Around 1 MB) will be in ESP (EFI System…
NJP
- 53
- 5
3
votes
1 answer
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, modules, etc. settings.
Example:
HOOKS="base udev…
Anonymous
- 493
- 6
- 15
3
votes
3 answers
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 available. For some reason, there was a bunch of…
strugee
- 14,723
- 17
- 73
- 119
2
votes
1 answer
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 adding HOOKs encrypt and lvm2 among others, see…
Bernd
- 31
- 1
- 4
2
votes
1 answer
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 enable this
feature, add the nvidia-drm.modeset=1…
xtian
- 583
- 5
- 17
2
votes
1 answer
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 image. ZImage is preferrable as a result, because…
skap
- 123
- 1
- 4
2
votes
1 answer
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="btrfs"?
Tom Hale
- 28,728
- 32
- 139
- 229
2
votes
0 answers
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 the /lib/modules/$(uname -r)/ folder
But that…
daisy
- 53,527
- 78
- 236
- 383