FS#38223 - [grub] 10_archlinux generates wrong initramfs path

Attached to Project: Arch Linux
Opened by wtf (oi_wtf) - Saturday, 21 December 2013, 22:43 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 11 January 2014, 10:20 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
10_archlinux generates wrong initramfs path

Additional info:
grub 2.02-beta1-1

Steps to reproduce:
- grub-mkconfig -o /boot/grub/grub.cfg with mentioned grup package installed
generates the following lines:
echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
initrd /initramfs-linux.img
instead of
echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
initrd /boot/initramfs-linux.img

I think using ${subdir} instead of ${SUBDIR} in /etc/grub.d/10_archlinux is causing this... (lines 91 and 117)
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Saturday, 11 January 2014, 10:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.02-beta2
Comment by Keshav Amburay (the.ridikulus.rat) - Tuesday, 24 December 2013, 07:08 GMT
@wtf: I have uploaded a modified script in my grub-git AUR pkg. Please test it and give me your feedback. If that works, I will submit it here.
Comment by wtf (oi_wtf) - Tuesday, 24 December 2013, 14:39 GMT
@keshav, it works well.
And I also noticed it didn't create as much entries for architectures as the original 10_archlinux.
Only x86 and x86_64-xen.

Anyway, i dropped your script into /etc/grub.d as 10_archlinux_grub-git, called grub-mkconfig and it seems it creates correct menuentries.
I'm attaching the file, so everyone can see. I removed some parts though, mostly the duplicate entries for the different architectures.
They're just bloat.
Comment by Martin Kühne (mar77i) - Thursday, 02 January 2014, 13:03 GMT
so, the only thing that fails is the variable names ${subdir} which aren't defined.
a locally working fix includes sed -i 's/\${subdir}/${SUBDIR}/' 10_archlinux
Comment by Tobias Powalowski (tpowa) - Saturday, 11 January 2014, 07:06 GMT
Should be fixed in 2.02-beta2, please confirm.
Comment by Felix Yan (felixonmars) - Saturday, 11 January 2014, 08:42 GMT
It works for me, with core/grub 1:2.02.beta2-1

Loading...