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!
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!
FS#53795 - [mkinitcpio] Typo in shebang for consolefont hook
Attached to Project:
Arch Linux
Opened by helle vaanzinn (glitsj16) - Monday, 24 April 2017, 18:03 GMT
Last edited by Dave Reisner (falconindy) - Monday, 24 April 2017, 18:07 GMT
Opened by helle vaanzinn (glitsj16) - Monday, 24 April 2017, 18:03 GMT
Last edited by Dave Reisner (falconindy) - Monday, 24 April 2017, 18:07 GMT
|
DetailsShebang in consolefont file has a typo, it references /usr/bin/ash (which is non-exiting).
Should point to /usr/bin/bash instead. $ pacman -Qi mkinitcpio | grep Version Version : 23-1 $ cat /usr/lib/initcpio/hooks/consolefont #!/usr/bin/ash run_hook() { if [ -e /consolefont.psfu ]; then msg -n ":: Loading console font..." setfont -C /dev/console /consolefont.psfu msg "done." elif [ -e /consolefont.psf ]; then msg -n ":: Loading console font..." setfont -C /dev/console /consolefont.psf msg "done." else msg "No consolefont found despite added hook." fi } # vim: set ft=sh ts=4 sw=4 et: |
This task depends upon
Closed by Dave Reisner (falconindy)
Monday, 24 April 2017, 18:07 GMT
Reason for closing: Not a bug
Additional comments about closing: ash is a real shell, and exists where/when the hooks are run.
Monday, 24 April 2017, 18:07 GMT
Reason for closing: Not a bug
Additional comments about closing: ash is a real shell, and exists where/when the hooks are run.
Comment by Dave Reisner (falconindy) -
Monday, 24 April 2017, 18:07 GMT
/usr/bin/ash exists in the initramfs, where this runs. Regardless, the script is sourced and not executed. There's no problem here -- the shebang is a cue to me (or anyone else work on mkinitcpio) for what syntax is legal.