Warnings only in mkinitcpio produce non-zero exit code
Description:
Running mkinitcpio -p linux-ec2
on an EC2 server produces a exit code of 1, while nothing labeled "error" is shown. It's unclear where to start looking for a problem as the consolefont warning should not be bad. Is the actual error silent?
# mkinitcpio -p linux-ec2
==> Building image from preset: /etc/mkinitcpio.d/linux-ec2.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux-ec2 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-ec2.img -S autodetect
==> Starting build: '6.7.5-1-ec2'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-ec2.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
# echo $?
1
/etc/mkinitcpio.d/linux-ec2.preset
:
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-ec2"
PRESETS=('default')
BINARIES="/usr/bin/btrfsck"
MODULES=('btrfs')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux-ec2.img"
default_options="-S autodetect"
Additional info:
- mkinitcpio 37.3-1
- linux-ec2 6.7.5-1 from https://git.uplinklabs.net/steven/projects/archlinux/ec2/ec2-packages.git/tree/linux-hsw