Double initcpios generation

This forum is for discussion about general software issues.

Double initcpios generation

Postby Sbyrr0 » Sun Jan 14, 2024 2:55 pm

Both the ALPM hooks `/usr/share/libalpm/hooks/90-linux-rpi.hook` and `/usr/share/libalpm/hooks/90-linux-rpi.hook` are regerenating the same initcpios twice at every system update:

[code]
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/kernel.img
Target = boot/kernel7.img
Target = boot/kernel8.img
Target = usr/lib/initcpio/*

[Action]
Description = Updating linux-rpi initcpios...
When = PostTransaction
Exec = /usr/bin/mkinitcpio -p linux-rpi
[/code]

and

[code]
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/lib/modules/*/vmlinuz
Target = usr/lib/initcpio/*
Target = usr/lib/firmware/*
Target = usr/src/*/dkms.conf

[Action]
Description = Updating linux initcpios...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/mkinitcpio install
NeedsTargets
[/code]
Sbyrr0
 
Posts: 28
Joined: Wed May 13, 2020 10:05 pm

Re: Double initcpios generation

Postby graysky » Sun Jan 14, 2024 5:29 pm

60 and 90 right? You mentioned 90 twice...

They are different. 60 runs depmod whereas 90 run mkinitcpio. On my systems, the image is only generated once. Is that not the case based on your pacman.log?
[code]
[2024-01-14T06:17:26-0500] [ALPM] transaction completed
[2024-01-14T06:17:27-0500] [ALPM] running '30-systemd-update.hook'...
[2024-01-14T06:17:27-0500] [ALPM] running '60-depmod.hook'...
[2024-01-14T06:17:30-0500] [ALPM] running '60-linux-rpi.hook'...
[2024-01-14T06:17:45-0500] [ALPM] running '90-linux-rpi.hook'...
[2024-01-14T06:17:48-0500] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-rpi.preset: 'default'
[2024-01-14T06:17:48-0500] [ALPM-SCRIPTLET] ==> Using configuration file: '/etc/mkinitcpio.conf'
[2024-01-14T06:17:48-0500] [ALPM-SCRIPTLET] -> -k 6.6.11-1-rpi-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2024-01-14T06:17:49-0500] [ALPM-SCRIPTLET] ==> Starting build: '6.6.11-1-rpi-ARCH'
[2024-01-14T06:17:50-0500] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2024-01-14T06:17:51-0500] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2024-01-14T06:17:52-0500] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2024-01-14T06:17:52-0500] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2024-01-14T06:17:52-0500] [ALPM-SCRIPTLET] -> Running build hook: [kms]
[2024-01-14T06:17:53-0500] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2024-01-14T06:17:53-0500] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
[2024-01-14T06:17:53-0500] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2024-01-14T06:17:53-0500] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2024-01-14T06:17:53-0500] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2024-01-14T06:17:54-0500] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2024-01-14T06:17:54-0500] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
[2024-01-14T06:17:58-0500] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[/code]
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Double initcpios generation

Postby graysky » Mon Jan 15, 2024 9:08 pm

I did streamline this in 6.6.11-2 which should build and hit the repos shortly. Please try it and report back.
make_clickable_callback(MAGIC_URL_FULL, '
', 'https://github.com/archlinuxarm/PKGBUILDs/commit/07b8e7adb85a5bf44465a3a1a763643549ce9953', '', ' class="postlink"')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests