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#27494 - [mkinitcpio] doesn't detect modules if the modules folder is a symlink

Attached to Project: Arch Linux
Opened by ying (ying) - Thursday, 08 December 2011, 15:55 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 14 January 2012, 00:34 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: mkinitcpio doesn't detect modules if the modules folder(ex. /lib/modules/3.1.4-1-ARCH) is a symlink, because find doesn't accept this (file: /lib/initcpio/functions
function: all_modules() line: 142).

Steps to reproduce:
Move the folder /lib/modules/*-ARCH to another destination and create a symlink back to the old location.


How to solve:
In file /usr/bin/mkinitcpio line 270 change

MODULEDIR=$BASEDIR/lib/modules/$KERNELVERSION

to

MODULEDIR="$(readlink -f $BASEDIR/lib/modules/$KERNELVERSION)"

;)
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 14 January 2012, 00:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://projects.archlinux.org/mkinitcpi o.git/commit/?id=53e88f96c6db
Comment by Dave Reisner (falconindy) - Friday, 09 December 2011, 14:25 GMT
Why is your modules folder a symlink? This smells like you're doing something very wrong, and this isn't part of the official packaging.
Comment by Dave Reisner (falconindy) - Friday, 09 December 2011, 18:09 GMT
Also, I'm more inclined to properly fix this rather than hack around with readlink. module-init-tools work just fine in this situation -- it's the all_modules() function which is stumbling (and not returning any results).

http://code.falconindy.com/cgit/mkinitcpio.git/commit/?h=fs27494&id=e5febe
Comment by ying (ying) - Friday, 09 December 2011, 19:00 GMT
That is true. Why it is a symlink? Because I played and changed the Filesystem Hierarchy. ;)
Comment by Dave Reisner (falconindy) - Saturday, 31 December 2011, 16:53 GMT
Fixed for next release: http://projects.archlinux.org/mkinitcpio.git/commit/?id=53e88f96c

I'll leave this open until I actually tag the release for [testing].

Loading...