[arch-general] Clarfication request regarding mkinitcpio code

Dave Reisner d at falconindy.com
Thu Jul 22 14:35:13 EDT 2010


There's a few things in mkinitcpio I'd like to cleanup, but I need to
have one issue clarified before I proceed. The header of mkinitcpio
itself states that various parts need to run under Busybox's ash, and
thus various standards need to be adhered to. However, the file itself
sports a /bin/bash shebang, and makes mild use of parameter expansion,
e.g. APPNAME=${0##*/} on line 44.

I understand that hooks themselves need to run in a more POSIX
environment, but would it be safe to use more Bash syntax in the
code that generates the initcpio image? I would be sticking to a feature
set compatible with 3.2.

thanks,

dave reisner


More information about the arch-general mailing list