FS#79219 - [mkinitcpio] Randomly produces broken initramfs leaving the system unbootable
Attached to Project:
Arch Linux
Opened by Matteo Beniamino (mbeniamino) - Thursday, 27 July 2023, 17:01 GMT
Last edited by Toolybird (Toolybird) - Thursday, 27 July 2023, 20:08 GMT
Opened by Matteo Beniamino (mbeniamino) - Thursday, 27 July 2023, 17:01 GMT
Last edited by Toolybird (Toolybird) - Thursday, 27 July 2023, 20:08 GMT
|
Details
Description:
Since I've changed my PC sometimes mkinitcpio gives an error during the autodetection of the modules, but it goes on and produces a broken initramfs (it misses at least some modules) leaving the system in an unbootable state. It doesn't happen all the times, but in the logs I can count 7 occurrences in about 60 runs in the last 4 months during system upgrades. Additional info: * mkinitcpio 36-1 Here is the log of a failed run: [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default' [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] ==> Using default configuration file: '/etc/mkinitcpio.conf' [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img --microcode /boot/amd-ucode.img [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] ==> Starting build: '6.4.6-arch1-1' [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] -> Running build hook: [base] [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] -> Running build hook: [udev] [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] -> Running build hook: [autodetect] [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] sort: cannot read: '/sys/devices/pci0000:00/0000:00:02.1/0000:05:00.0/0000:06:0c.0/0000:0c:00.0/usb1/1-6/1-6:1.6/ep_08/uevent': File o directory non esistente [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] modprobe: ERROR: missing parameters. See -h. [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] -> Running build hook: [modconf] [2023-07-26T18:31:45+0200] [ALPM-SCRIPTLET] -> Running build hook: [kms] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] -> Running build hook: [keyboard] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] -> Running build hook: [keymap] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] -> Running build hook: [consolefont] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] ==> WARNING: consolefont: no font found in configuration [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] -> Running build hook: [block] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] -> Running build hook: [lvm2] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] -> Running build hook: [filesystems] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] -> Running build hook: [fsck] [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] ==> Generating module dependencies [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img' [2023-07-26T18:31:46+0200] [ALPM-SCRIPTLET] ==> Image generation successful Notice the lines about sort and modprobe and the fact that the log ends with "Image generation successful". Throwing an error would at least allow me to notice the issue and relaunch the script manually (I do this when I notice it). Steps to reproduce: Honestly I don't know, it happens randomly. Let me know if you need further info. |
This task depends upon
Closed by Toolybird (Toolybird)
Thursday, 27 July 2023, 20:08 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#77789
Thursday, 27 July 2023, 20:08 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#77789?