FS#25241 - [mkinitcpio] output of -M option not perfectly sorted

Attached to Project: Arch Linux
Opened by Dario Giovannetti (kynikos) - Sunday, 24 July 2011, 11:53 GMT
Last edited by Dave Reisner (falconindy) - Monday, 25 July 2011, 10:08 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Thomas Bächler (brain0)
Dave Reisner (falconindy)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Since mkinitcpio ~0.7, the output of -M is sorted and uniqued, however if I run "mkinitcpio -M" this is my output:

==> Modules autodetected
ahci
button
eeepc_wmi
ehci_hcd
evdev
firewire_ohci
i2c_i801
ide_pci_generic
intel_agp
iTCO_wdt
nvidia
pata_acpi
processor
r8169
sd_mod
serio_raw
shpchp
snd_hda_intel
sr_mod
usbcore
usbhid
wmi
xhci_hcd
ext4

As you can see, "ext4" is put at the end. I don't know if this is really a bug or if it's an intended behaviour for some reason.
Tested with mkinitcpio 0.7.2-1 on an x86_64 system.

Steps to reproduce:
# mkinitcpio -M
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 25 July 2011, 10:08 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Working as intended.
Comment by Karol Błażewicz (karol) - Sunday, 24 July 2011, 12:52 GMT
/lib/initcpio/install/autodetect:

auto_modules | grep -xEv '(ata|ide)_generic' >"$MODULE_FILE"
if ! findmnt -uno fstype "${BASEDIR:-/}" >>"$MODULE_FILE"; then

The second line appends the fs but doesn't sort $MODULE_FILE.
Comment by Dave Reisner (falconindy) - Sunday, 24 July 2011, 23:08 GMT
Is there a reason you need this output re-sorted, or is this just being mindlessly pedantic? As Karol points out, FS modules are added separately from the modules reaped from /sys.
Comment by Dario Giovannetti (kynikos) - Monday, 25 July 2011, 10:06 GMT
No particular reason, I really didn't mean to be "mindlessly pedantic" at all, I'm sorry if you've taken it that way: if you look well I set severity "very low". I didn't know you don't like people reporting little bugs, I learned it the hard way, ok. Please close this bug and forget it.

Loading...