Skip to content

mkinitcpio: invoke realpath with -q and -e

Guilherme requested to merge guilherme/mkinitcpio:fix-realpath into master

From realpath(1):

-q: suppress most error messages
-e: all components of the path must exist

The -q option silences an error message by realpath on systems that don't have any of the firmware directories created, e.g.:

$ mkinitcpio -P
[ ... ]
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
realpath: /usr/lib/firmware/updates: No such file or directory
realpath: /lib/firmware/updates: No such file or directory
==> Starting build: '6.7.8-arch1-1'

The -e option is just good practice.

Fixes #256 (closed).

Edited by nl6720

Merge request reports