Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76896 - [mkinitcpio] ignoring parameter -c (--config)

Attached to Project: Arch Linux
Opened by Richard Neumann (rne) - Wednesday, 21 December 2022, 09:00 GMT
Last edited by Toolybird (Toolybird) - Thursday, 22 December 2022, 06:34 GMT
Task Type Bug Report
Category Packages: Core
Status Assigned
Assigned To Giancarlo Razzolini (grazzolini)
Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:
mkinitcpio is ignoring the -c <file> parameter

Additional info:
* package version: 34-2

Steps to reproduce:

0 ✓ 1871 ~ $ mkinitcpio -Pc /etc/mkinitcpio.conf
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 5.15.84-1-lts
-> Running build hook: [base]
-> Running build hook: [systemd]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
0 ✓ 1871 ~ $ mkinitcpio -Pc /etc/mkinitcpio.conf.2
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 5.15.84-1-lts
-> Running build hook: [base]
-> Running build hook: [systemd]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful

The second call should generate an uncompressed image!
This task depends upon

Comment by Toolybird (Toolybird) - Thursday, 22 December 2022, 06:48 GMT
It appears the function arrayize_config() doesn't handle the "COMPRESSION=..." option.

Edit. Scratch that. Will leave it to the experts :)

Loading...