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#33098 - FILES directive in mkinitcpio.conf doesn't support wildcards anymore

Attached to Project: Arch Linux
Opened by Roberto Malinverni (daneel971) - Saturday, 15 December 2012, 10:14 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 15 December 2012, 15:49 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In my mkinitcpio.conf I have:
FILES="/root/scripts/*"

With the latest mkinitcpio 0.12.0-2, I get a "ERROR: file not found: /root/scripts/*" when I build the initramfs image.
All works fine if I list the single scripts I want to add to the image.

It is possible to make the modconf hook add the content of user specified directories other than /etc/modprobe.d instead of listing all the files?
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 15 December 2012, 15:49 GMT
Reason for closing:  Won't fix
Additional comments about closing:  FILES intentionally does not support globbing anymore (it never should have to begin with).
Comment by Dave Reisner (falconindy) - Saturday, 15 December 2012, 14:49 GMT
Anymore? It never did support globbing, and I won't be adding support for it. There's simply no safe/sane way to do it given that they're defined as variables and not arrays. Changing them at this point isn't an option.

> It is possible to make the modconf hook add the content of user specified directories other than /etc/modprobe.d instead of listing all the files?
No, you can write your own hook.
Comment by Roberto Malinverni (daneel971) - Saturday, 15 December 2012, 15:24 GMT
> Anymore? It never did support globbing
In the previous versions having "FILES=/my/dir/* /my/other/dir/*" worked fine

> No, you can write your own hook.
Ok, thanks

Comment by Dave Reisner (falconindy) - Saturday, 15 December 2012, 15:30 GMT
Hmm, actually you're right. I'm intentionally disallowing globbing now. I think I prefer to keep it this way. Perhaps a reasonable request would be to allow adding a directory via FILES, but I suspect that your use case is better fulfilled by a separate hook. Why do you need these files in early userspace? What else are you adding?
Comment by Roberto Malinverni (daneel971) - Saturday, 15 December 2012, 15:48 GMT
I'm adding a few scripts that resides in /root/scripts ad some udev rules in /etc/udev/rules.d
Anyway, I realized that that's probably just an old habit - I'm not sure I need them so don't worry about this: beside, I like the "hook" idea more.

Loading...