You are not logged in.

#1 2023-06-02 14:38:52

boesi
Member
Registered: 2021-04-17
Posts: 3

[SOLVED] pacman installs kernel successfully with error message...

Hi

I just did a fresh install of Arch and as far as I can tell everything is working fine except for one small detail. When I install the linux or linux-lts packages, pacman gives me this strange message:

...
==> Image generation successful
error: command failed to execute correctly

/var/log/pacman.log omits the last line, but otherwise contains no additional information.
So what is the actual error?

Full output:

$ pacman -vS linux-lts
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : linux-lts
resolving dependencies...
warning: linux-lts-6.1.31-1 is up to date -- reinstalling
looking for conflicting packages...

Packages (1) linux-lts-6.1.31-1

Total Installed Size:  136.63 MiB
Net Upgrade Size:        0.00 MiB

checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
reinstalling linux-lts...
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img --microcode /boot/*-ucode.img
==> Starting build: '6.1.31-1-lts'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> 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]
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect --microcode /boot/*-ucode.img
==> Starting build: '6.1.31-1-lts'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'wd719x'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts-fallback.img'
==> Image generation successful
error: command failed to execute correctly

Thanks for your help.

Last edited by boesi (2023-06-02 17:52:32)

Offline

#2 2023-06-02 15:58:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,800

Re: [SOLVED] pacman installs kernel successfully with error message...

==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
==> WARNING: errors were encountered during the build. The image may not be complete.

https://bbs.archlinux.org/viewtopic.php?id=282234
btrfs?

Offline

#3 2023-06-02 17:47:01

boesi
Member
Registered: 2021-04-17
Posts: 3

Re: [SOLVED] pacman installs kernel successfully with error message...

seth wrote:
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
==> WARNING: errors were encountered during the build. The image may not be complete.

https://bbs.archlinux.org/viewtopic.php?id=282234
btrfs?

indeed...

and installing btrfs-progs also made this warning disappear:

...
  -> Running build hook: [fsck]
==> WARNING: No fsck helpers found. fsck will not be run on boot.
...

I knew it, in this simple error message was something to learn. Thanks.

Last edited by boesi (2023-06-02 17:47:31)

Offline

Board footer

Powered by FluxBB