You are not logged in.

#1 2021-09-15 13:18:25

kkYrusobad
Member
Registered: 2021-09-15
Posts: 3

[SOLVED]mkinitcpio fails to commit transactions.

Hello,
I was updating my system yesterday and without knowing I terminated update process mid execution which resulted in kernel not loading on next boot, I mounted the partitions and created images with

# mkinitcpio -p linux

after re-installing linux package from repos. Now, During transaction phase in package installation it spits out error because of chrooting and failing to commit transactions.

Last edited by kkYrusobad (2021-09-15 13:28:09)

Offline

#2 2021-09-15 13:25:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED]mkinitcpio fails to commit transactions.

Post the exact error or rather the entire command and output produced.

Last edited by V1del (2021-09-15 13:25:40)

Offline

#3 2021-09-15 13:27:50

kkYrusobad
Member
Registered: 2021-09-15
Posts: 3

Re: [SOLVED]mkinitcpio fails to commit transactions.

Yes, So I was fiddling around some internals and saw grub-mkconfig error about not finding grub.cfg.new file while processing hook for the linux package. Solution: initialize and make grub config again so that hooks can complete without errors.

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
# grub-mkconfig -o /boot/grub/grub.cfg

Here, user can change bootloader id for anything they want as name for the loader in grub.

Offline

#4 2021-09-15 13:29:05

kkYrusobad
Member
Registered: 2021-09-15
Posts: 3

Re: [SOLVED]mkinitcpio fails to commit transactions.

V1del wrote:

Post the exact error or rather the entire command and output produced.

Solved the issue seconds after posting, posted the solution that worked for me marked the post as solved. Thanks for your reply!

Offline

Board footer

Powered by FluxBB