FS#58659 - [mkinitcpio] makes initramfs without libs

Attached to Project: Arch Linux
Opened by Arne Wörner (riddicc) - Saturday, 19 May 2018, 06:42 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 19 May 2018, 13:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I tried to update to kernel 4.16.8 yesterday,
mkinitcpio made me an initramfs without libs,
so that after grub i saw an error message like "could not find /init".
Downgrading the kernel to 4.16.7 did not help.
I had to find a copy of that initramfs file in my backup.
Now it works again, but i cannod update my kernel...

Additional info:
* mkinitcpio 24-2 on Manjaro Linux
* it is the same config since months...
MODULES=(amdgpu bcache)
BINARIES=()
FILES=()
HOOKS=(base keyboard keymap udev autodetect modconf block net myswap uresume bcache btrfs filesystems)
COMPRESSION="xz"
* # mkdir /tmp/b ; cd /tmp/b ; unxz < /boot/initramfs-4.16-x86_64.img | cpio -i ; ls usr/lib
73860 blocks
firmware modprobe.d modules systemd udev

Steps to reproduce:
1. do a pacman -Syu
2. wait for mkinitcpio and grub
3. reboot
This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 19 May 2018, 13:35 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Saturday, 19 May 2018, 06:54 GMT
Likely because something else on your system is broken. Did you read the output when the image was created?
Comment by Arne Wörner (riddicc) - Saturday, 19 May 2018, 09:03 GMT
yes, indeed mkinitcpio is unchanged since weeks... but it is the only one, who acts funny... :)
so i thought it might b a bug in mkinitcpio...?

there were no error messages coming from mkinitcpio...
i tried to undo yesterday's updates, but the initramfs still looked bad (just half of the usual size and no libs) after a mkinitcpio -p linux416...
i attached the output of mkinitcpio -p linux416 -d
it produced 6694920 bytes instead of the usual 11905384 bytes...
how does mkinitcpio decide which libs the ramfs needs?
Comment by Arne Wörner (riddicc) - Saturday, 19 May 2018, 12:51 GMT
oops...
somehow my /usr/lib64 symlink to /usr/lib disappeared...
now it works again...
-arne

Loading...