Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect (Read 696 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect

Hi everyone,

I was upgrading my system this morning, and then the update process got freezed at the step saying:
Code: [Select]
-> Running build hook: [autodetect] 
After waiting over an hour, I killed the process.

Trying to reinstall linux package again stops at the same step every time, whether through pacman, yay, or manually.

The same happens when running:
Code: [Select]
mkinitcpio -p linux

Is this a problem with my installation or Is there another thing causing this issue?

Please help!

Re: Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect

Reply #1
Try
Code: [Select]
mkinitcpio -v -p linux
Maybe verbose output can help.

Re: Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect

Reply #2
Try
Code: [Select]
mkinitcpio -v -p linux
Maybe verbose output can help.

I temporarily solved the problem by making a workaround and deleting the "autodetect" from the mkinitcpio.conf file

So, in order to try to understand what's happening, I followed your suggestion, and ran the command
Code: [Select]
mkinitcpio -v -p linux
after reverting the mkinitcpio.conf file

The output is:
Code: [Select]
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -v -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.12.1-artix1-1'
  -> Running build hook: [/usr/lib/initcpio/install/consolefont]
    adding file: /usr/bin/setfont
    adding file: /usr/lib/libc.so.6
    adding file: /usr/lib/ld-linux-x86-64.so.2
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [/usr/lib/initcpio/install/base]
    adding file: /bin/busybox
    adding file: /usr/lib/libcrypt.so.2.0.0
    adding symlink: /usr/lib/libcrypt.so.2 -> libcrypt.so.2.0.0
    adding symlink: /usr/bin/[ -> busybox
    adding symlink: /usr/bin/arch -> busybox
    adding symlink: /usr/bin/ascii -> busybox
    adding symlink: /usr/bin/ash -> busybox
    adding symlink: /usr/bin/awk -> busybox
    adding symlink: /usr/bin/base32 -> busybox
    adding symlink: /usr/bin/base64 -> busybox
    adding symlink: /usr/bin/basename -> busybox
    adding symlink: /usr/bin/bc -> busybox
    adding symlink: /usr/bin/blkdiscard -> busybox
    adding symlink: /usr/bin/bzip2 -> busybox
    adding symlink: /usr/bin/cat -> busybox
    adding symlink: /usr/bin/chgrp -> busybox
    adding symlink: /usr/bin/chmod -> busybox
    adding symlink: /usr/bin/chown -> busybox
    adding symlink: /usr/bin/chroot -> busybox
    adding symlink: /usr/bin/clear -> busybox
    adding symlink: /usr/bin/cp -> busybox
    adding symlink: /usr/bin/cpio -> busybox
    adding symlink: /usr/bin/crc32 -> busybox
    adding symlink: /usr/bin/cttyhack -> busybox
    adding symlink: /usr/bin/cut -> busybox
    adding symlink: /usr/bin/dd -> busybox
    adding symlink: /usr/bin/df -> busybox
    adding symlink: /usr/bin/dirname -> busybox
    adding symlink: /usr/bin/dmesg -> busybox
    adding symlink: /usr/bin/du -> busybox
    adding symlink: /usr/bin/echo -> busybox
    adding symlink: /usr/bin/env -> busybox
    adding symlink: /usr/bin/expr -> busybox
    adding symlink: /usr/bin/fallocate -> busybox
    adding symlink: /usr/bin/false -> busybox
    adding symlink: /usr/bin/fatattr -> busybox
    adding symlink: /usr/bin/free -> busybox
    adding symlink: /usr/bin/fsfreeze -> busybox
    adding symlink: /usr/bin/fstrim -> busybox
    adding symlink: /usr/bin/fsync -> busybox
    adding symlink: /usr/bin/getopt -> busybox
    adding symlink: /usr/bin/grep -> busybox
    adding symlink: /usr/bin/gzip -> busybox
    adding symlink: /usr/bin/halt -> busybox
    adding symlink: /usr/bin/head -> busybox
    adding symlink: /usr/bin/hexdump -> busybox
    adding symlink: /usr/bin/hexedit -> busybox
    adding symlink: /usr/bin/i2ctransfer -> busybox
    adding symlink: /usr/bin/ifconfig -> busybox
    adding symlink: /usr/bin/init -> busybox
    adding symlink: /usr/bin/install -> busybox
    adding symlink: /usr/bin/ip -> busybox
    adding symlink: /usr/bin/ipaddr -> busybox
    adding symlink: /usr/bin/iplink -> busybox
    adding symlink: /usr/bin/ipneigh -> busybox
    adding symlink: /usr/bin/iproute -> busybox
    adding symlink: /usr/bin/iprule -> busybox
    adding symlink: /usr/bin/iptunnel -> busybox
    adding symlink: /usr/bin/kbd_mode -> busybox
    adding symlink: /usr/bin/kill -> busybox
    adding symlink: /usr/bin/killall -> busybox
    adding symlink: /usr/bin/less -> busybox
    adding symlink: /usr/bin/link -> busybox
    adding symlink: /usr/bin/ln -> busybox
    adding symlink: /usr/bin/loadfont -> busybox
    adding symlink: /usr/bin/loadkmap -> busybox
    adding symlink: /usr/bin/losetup -> busybox
    adding symlink: /usr/bin/ls -> busybox
    adding symlink: /usr/bin/lsscsi -> busybox
    adding symlink: /usr/bin/lzop -> busybox
    adding symlink: /usr/bin/md5sum -> busybox
    adding symlink: /usr/bin/mim -> busybox
    adding symlink: /usr/bin/mkdir -> busybox
    adding symlink: /usr/bin/mkfifo -> busybox
    adding symlink: /usr/bin/mknod -> busybox
    adding symlink: /usr/bin/mkpasswd -> busybox
    adding symlink: /usr/bin/mktemp -> busybox
    adding symlink: /usr/bin/mountpoint -> busybox
    adding symlink: /usr/bin/mv -> busybox
    adding symlink: /usr/bin/nc -> busybox
    adding symlink: /usr/bin/netstat -> busybox
    adding symlink: /usr/bin/nologin -> busybox
    adding symlink: /usr/bin/nproc -> busybox
    adding symlink: /usr/bin/nsenter -> busybox
    adding symlink: /usr/bin/nslookup -> busybox
    adding symlink: /usr/bin/nuke -> busybox
    adding symlink: /usr/bin/openvt -> busybox
    adding symlink: /usr/bin/partprobe -> busybox
    adding symlink: /usr/bin/paste -> busybox
    adding symlink: /usr/bin/pgrep -> busybox
    adding symlink: /usr/bin/pidof -> busybox
    adding symlink: /usr/bin/ping -> busybox
    adding symlink: /usr/bin/ping6 -> busybox
    adding symlink: /usr/bin/poweroff -> busybox
    adding symlink: /usr/bin/printf -> busybox
    adding symlink: /usr/bin/ps -> busybox
    adding symlink: /usr/bin/pwd -> busybox
    adding symlink: /usr/bin/readlink -> busybox
    adding symlink: /usr/bin/realpath -> busybox
    adding symlink: /usr/bin/reboot -> busybox
    adding symlink: /usr/bin/resume -> busybox
    adding symlink: /usr/bin/rm -> busybox
    adding symlink: /usr/bin/rmdir -> busybox
    adding symlink: /usr/bin/route -> busybox
    adding symlink: /usr/bin/run-init -> busybox
    adding symlink: /usr/bin/sed -> busybox
    adding symlink: /usr/bin/seedrng -> busybox
    adding symlink: /usr/bin/seq -> busybox
    adding symlink: /usr/bin/setfattr -> busybox
    adding symlink: /usr/bin/setfont -> busybox
    adding symlink: /usr/bin/sh -> busybox
    adding symlink: /usr/bin/sha1sum -> busybox
    adding symlink: /usr/bin/sha256sum -> busybox
    adding symlink: /usr/bin/sha512sum -> busybox
    adding symlink: /usr/bin/shuf -> busybox
    adding symlink: /usr/bin/sleep -> busybox
    adding symlink: /usr/bin/sort -> busybox
    adding symlink: /usr/bin/stat -> busybox
    adding symlink: /usr/bin/strings -> busybox
    adding symlink: /usr/bin/sync -> busybox
    adding symlink: /usr/bin/tac -> busybox
    adding symlink: /usr/bin/tail -> busybox
    adding symlink: /usr/bin/tar -> busybox
    adding symlink: /usr/bin/tcpsvd -> busybox
    adding symlink: /usr/bin/tee -> busybox
    adding symlink: /usr/bin/telnet -> busybox
    adding symlink: /usr/bin/test -> busybox
    adding symlink: /usr/bin/tftp -> busybox
    adding symlink: /usr/bin/touch -> busybox
    adding symlink: /usr/bin/tree -> busybox
    adding symlink: /usr/bin/true -> busybox
    adding symlink: /usr/bin/truncate -> busybox
    adding symlink: /usr/bin/ts -> busybox
    adding symlink: /usr/bin/tsort -> busybox
    adding symlink: /usr/bin/udhcpc -> busybox
    adding symlink: /usr/bin/udhcpc6 -> busybox
    adding symlink: /usr/bin/umount -> busybox
    adding symlink: /usr/bin/uname -> busybox
    adding symlink: /usr/bin/uniq -> busybox
    adding symlink: /usr/bin/unlink -> busybox
    adding symlink: /usr/bin/unshare -> busybox
    adding symlink: /usr/bin/unzip -> busybox
    adding symlink: /usr/bin/uptime -> busybox
    adding symlink: /usr/bin/vi -> busybox
    adding symlink: /usr/bin/wc -> busybox
    adding symlink: /usr/bin/wget -> busybox
    adding symlink: /usr/bin/which -> busybox
    adding symlink: /usr/bin/xxd -> busybox
    adding symlink: /usr/bin/xz -> busybox
    adding symlink: /usr/bin/yes -> busybox
    adding file: /usr/bin/kmod
    adding file: /usr/lib/libzstd.so.1.5.6
    adding symlink: /usr/lib/libzstd.so.1 -> libzstd.so.1.5.6
    adding file: /usr/lib/liblzma.so.5.6.3
    adding symlink: /usr/lib/liblzma.so.5 -> liblzma.so.5.6.3
    adding file: /usr/lib/libz.so.1.3.1
    adding symlink: /usr/lib/libz.so.1 -> libz.so.1.3.1
    adding file: /usr/lib/libcrypto.so.3
    adding file: /usr/lib/libgcc_s.so.1
    adding symlink: /usr/bin/depmod -> kmod
    adding symlink: /usr/bin/insmod -> kmod
    adding symlink: /usr/bin/rmmod -> kmod
    adding symlink: /usr/bin/lsmod -> kmod
    adding symlink: /usr/bin/modprobe -> kmod
    adding symlink: /usr/bin/modinfo -> kmod
    adding file: /usr/bin/blkid
    adding file: /usr/lib/libblkid.so.1.1.0
    adding symlink: /usr/lib/libblkid.so.1 -> libblkid.so.1.1.0
    adding file: /usr/bin/mount
    adding file: /usr/lib/libmount.so.1.1.0
    adding symlink: /usr/lib/libmount.so.1 -> libmount.so.1.1.0
    overwriting file: /usr/bin/umount
    adding file: /usr/bin/switch_root
    adding file: /init_functions
    adding file: /init
  -> Running build hook: [/usr/lib/initcpio/install/udev]
    adding file: /usr/bin/udevadm
    adding symlink: /usr/bin/udevd -> /usr/bin/udevadm
    adding file: /usr/lib/libacl.so.1.1.2302
    adding symlink: /usr/lib/libacl.so.1 -> libacl.so.1.1.2302
    adding file: /usr/lib/libcap.so.2.71
    adding symlink: /usr/lib/libcap.so.2 -> libcap.so.2.71
    overwriting file: /usr/bin/udevadm
    adding file: /usr/bin/etmpfiles
    adding dir: /usr/lib/udev
    adding file: /usr/lib/udev/ata_id
    adding file: /usr/lib/udev/scsi_id
    adding file: /usr/lib/libkmod.so.2.5.0
    adding symlink: /usr/lib/libkmod.so.2 -> libkmod.so.2.5.0
    adding dir: /usr/lib/udev/rules.d
    adding file: /usr/lib/udev/rules.d/50-udev-default.rules
    adding file: /usr/lib/udev/rules.d/60-persistent-storage.rules
    overwriting file: /usr/lib/udev/ata_id
    overwriting file: /usr/lib/udev/ata_id
    overwriting file: /usr/lib/udev/ata_id
    overwriting file: /usr/lib/udev/scsi_id
    overwriting file: /usr/lib/udev/scsi_id
    adding file: /usr/lib/udev/rules.d/64-btrfs.rules
    overwriting file: /usr/bin/udevadm
    adding file: /usr/lib/udev/rules.d/80-drivers.rules
    adding file: /hooks/udev
  -> Running build hook: [/usr/lib/initcpio/install/autodetect]


It stops again at same step, and no output after the last line for several minites. If I got any update I'll post it here.

Re: Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect

Reply #3
I'd try install some other kernel (e.g. linux-lts) or downgrade kernel to previous version. Also I'd check if /usr/lib/initcpio/install/autodetect is not damaged.

 

Re: Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect

Reply #4
I'd try install some other kernel (e.g. linux-lts) or downgrade kernel to previous version.
Thanks for your suggestions.
I've already tried the Lts kernel before making this thread, with no avail. The installation process didn't complete as it stopped at autodetect hook building.

Quote
Also I'd check if /usr/lib/initcpio/install/autodetect is not damaged.
How can I check that?


Re: Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect

Reply #6
Thanks for your response, and sorry for late reply
running that command gives me this
Code: [Select]
anoki@victus15-fb1003nx:~$ pacman -Qkk mkinitcpio
backup file: mkinitcpio: /etc/mkinitcpio.conf (Modification time mismatch)
backup file: mkinitcpio: /etc/mkinitcpio.conf (Size mismatch)
backup file: mkinitcpio: /etc/mkinitcpio.conf (SHA256 checksum mismatch)
mkinitcpio: 84 total files, 0 altered files
I then remvoed that config file (/etc/mkinitcpio.conf) and reinstalled mkinitcpio to regenerate it, and that solved the problem.
Many thanks for your help @Ambie

Re: Installing "linux-6.12.1.artix1-1" package stops at build hook autodetect

Reply #7
had this error. This helped. thanks