You are not logged in.

#1 2024-11-01 14:42:26

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

[Solved] upgrading from kernel 6.11.3 to 6.11.5

This morning I ran  yay -Syu

upgraded from From Kernel 6.11.3-arch-1 to 6.11.5

I got the following error messages
Failed to start CLI netfilter manager. see systemctl status ufw.service for details
Failed to mnt /mnt/BackUp_1 see systemctl status mnt-BackUp_1.mount
Failed to mnt /mnt/BackUp_2 see systemctl status mnt-BackUp_2.mount

Although the PC booted I had thise errors show at booting and when logged had no Ethernet or Wifi and was also unable to mount  mnt/Backups1 and  mnt/Backups2

when downgrading to 6.11.3 all is okay, is this a kernel bug ?

Last edited by Trevor_B (2024-11-02 15:26:06)

Offline

#2 2024-11-01 14:43:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

See `uname -a` when you're having the problem, it sounds like you're still loading the old kernel. Usually happens when you update without /boot mounted, or when your bootloader is looking at the wrong partition.

Offline

#3 2024-11-01 15:30:16

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

affectively I get

[trevor@trevor-arch ~]$ uname -a
trevor-arch 6.11.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 20:11:06 +0000 x86_64 GNU/Linux
after update to 6.11.5
[trevor@trevor-arch ~]$ uname -a
Linux trevor-arch 6.11.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 20:11:06 +0000 x86_64 GNU/Linux

I see that I'm getting (4/4) Updating linux initcpios...
call to execv failed (No such file or directory)
error: command failed to execute correctly

Offline

#4 2024-11-01 15:48:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Well that's interesting. What does `pacman -Qikk mkinitcpio` show? What's in /etc/mkinitcpio.d/linux.preset?

Offline

#5 2024-11-01 15:58:54

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Here are what you asked for  :
https://pastebin.com/EFPX8xPy

it seems that there are some errors in the conf file, though haven't touched this in years

I also have a mkinitcpio.conf.pacnew in the /etc folder, maybe this has something to do with it/the errors
https://pastebin.com/mfzJXssH

and the Linux preset file
https://pastebin.com/guQn313Y

Last edited by Trevor_B (2024-11-01 16:40:02)

Offline

#6 2024-11-01 16:42:02

seth
Member
Registered: 2012-09-03
Posts: 59,011

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

pacman -vS --debug linux

Post the entire output.

Also

ls -lR /usr/local/share/libalpm/

Online

#7 2024-11-01 16:52:44

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

seth wrote:
pacman -vS --debug linux

Post the entire output.

https://pastebin.com/uWAP510W

Can I proceed with installation ?

Also

ls -lR /usr/local/share/libalpm/

ls -lR /usr/local/share/libalpm/
ls: cannot access '/usr/local/share/libalpm/': No such file or directory

Offline

#8 2024-11-01 16:55:21

seth
Member
Registered: 2012-09-03
Posts: 59,011

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

ls -lR /etc/pacman.d/hooks/

You didn't complete the installation and so no (failing) hook was triggered?

Online

#9 2024-11-01 17:08:06

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

I ran again and accepted the Y option
pacman -vS --debug linux
https://pastebin.com/9RZ5v4Qk

ls -lR /etc/pacman.d/hooks/
still gives me No such file or directory

I then added the Linux headers
https://pastebin.com/MzqJJvAS

and rebooted , but still in 6.11.3 (did uname _a)
on a second PC as while in arch don't have a network

Offline

#10 2024-11-01 17:15:42

seth
Member
Registered: 2012-09-03
Posts: 59,011

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

The important part is

debug: executing "/usr/share/libalpm/scripts/mkinitcpio" under chroot "/"

Edit that file, there's a line that says "set -e"
Add a second line "set -x" and re-install the kernel (you can skip debug and -v but you need to trigger the hook)

Also

pacman -Qikk glibc

Online

#11 2024-11-01 17:22:48

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

And unrelated to your current issue, but please read https://wiki.archlinux.org/title/Pacman … nd_Pacsave. You still have the Community repo which hasn't existed for a year and a half.

Offline

#12 2024-11-01 17:54:19

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Tried that

Not knowing how to chroot, did a sudo nano and added the set -x just after the set -e

set -e
set -x

then re installed the kernel 6.11.5

It didn't change anything I didn't see 'Observe the Output: With set -x enabled, the script will now print each command as it’s executed, providing a detailed trace that could help identify any issues with the hook'

As I can't mount a usb key to copy complete details to this PC (unless I downgrade back to 6.11.3) and having no network, I can't copy the complete pacman -Qikk glibc details for you

I have at the end if the output : backup file: glibc /etc/locale.gen
Modification mismatch
size mismatch
checksum mismatch

Offline

#13 2024-11-01 18:11:49

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

downgraded kernel back to 6.11.3 so that I can post the complete pacman -Qikk glibc for you

https://pastebin.com/aJH2n32q

Offline

#14 2024-11-01 18:15:59

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Scimmia wrote:

And unrelated to your current issue, but please read https://wiki.archlinux.org/title/Pacman … nd_Pacsave. You still have the Community repo which hasn't existed for a year and a half.


Hi

did a cat /etc/pacman.conf

Have
[community]
Include = /etc/pacman.d/mirrorlist

So i can disable/ delete it ?

Offline

#15 2024-11-01 18:21:15

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Hmm, according to pacman -Qikk the file should exist, but can you try

stat /usr/share/libalpm/scripts/mkinitcpio
file /usr/share/libalpm/scripts/mkinitcpio 

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#16 2024-11-01 18:30:19

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

progandy wrote:

Hmm, according to pacman -Qikk the file should exist, but can you try

stat /usr/share/libalpm/scripts/mkinitcpio
file /usr/share/libalpm/scripts/mkinitcpio 

Hi

stat /usr/share/libalpm/scripts/mkinitcpio
  File: /usr/share/libalpm/scripts/mkinitcpio
  Size: 6572          Blocks: 16         IO Block: 4096   regular file
Device: 8,2    Inode: 53091853    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-11-01 18:29:37.007597234 +0100
Modify: 2024-11-01 18:24:10.796585797 +0100
Change: 2024-11-01 18:24:10.796585797 +0100
Birth: 2024-06-06 16:59:59.346536098 +0200
[trevor@trevor-arch ~]$ file /usr/share/libalpm/scripts/mkinitcpio
/usr/share/libalpm/scripts/mkinitcpio: Bourne-Again shell script, ASCII text executable

Offline

#17 2024-11-01 18:50:47

seth
Member
Registered: 2012-09-03
Posts: 59,011

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Please use [code][/code] tags.

It didn't change anything I didn't see 'Observe the Output: With set -x enabled, the script will now print each command as it’s executed, providing a detailed trace that could help identify any issues with the hook'

Did you ask ShitGPT what the flag does or where does that "quote" come from?
Anyway, prepend

set -x
exec >> /tmp/mkinitcpio.log
exec 2>&1

This should™ log the trace in /tmp/mkinitcpio.log

Online

#18 2024-11-01 19:34:36

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Okay
I ran  : exec >> /tmp/mkinitcpio.log  to make the log
Then
I  ran  : exec 2>&1
Which just seems to hang in terminal

I then opened a second terminal and ran sudo pacman -Syu
Packages (2) linux-6.11.5.arch1-1  linux-headers-6.11.5.arch1-1

after the install finished the log is still empty

so I presume I'm doing something wrong here

Offline

#19 2024-11-01 19:49:13

seth
Member
Registered: 2012-09-03
Posts: 59,011

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

You're not supposed to run any of that but add it to the top of /usr/share/libalpm/scripts/mkinitcpio, like "set -x"

Online

#20 2024-11-01 20:05:29

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Okay, sorry about that
Modified the /usr/share/libalpm/scripts/mkinitcpio

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only

set -e
set -x
exec >> /tmp/mkinitcpio.log
exec 2>&1

args=()
package=0
.....
ran Syu to get the
Packages (2) linux-6.11.5.arch1-1  linux-headers-6.11.5.arch1-1

But have no temp file before while still in 6.11.3, during the update or after booting into 6.11.5

Offline

#21 2024-11-01 20:42:57

seth
Member
Registered: 2012-09-03
Posts: 59,011

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Prepend

echo wtf > /tmp/mkinitcpio.wtf

to check whether the script actually ever runs.

Can you run

/usr/bin/env bash

from an interactive shell?

Online

#22 2024-11-01 20:59:29

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

I'll check this tomorrow as I can't do anything more tonight

Thanks in advance

Offline

#23 2024-11-01 23:15:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Trevor_B wrote:
Scimmia wrote:

And unrelated to your current issue, but please read https://wiki.archlinux.org/title/Pacman … nd_Pacsave. You still have the Community repo which hasn't existed for a year and a half.


Hi

did a cat /etc/pacman.conf

Have
[community]
Include = /etc/pacman.d/mirrorlist

So i can disable/ delete it ?

That's only one of the things that needs done. Read the link.

Offline

#24 2024-11-02 08:27:00

Trevor_B
Member
Registered: 2019-12-28
Posts: 115

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

Good morning

1 - I have added the 'echo wtf > /tmp/mkinitcpio.wtf' to the mkinitcpio

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only

set -e
set -x
exec >> /tmp/mkinitcpio.log
exec 2>&1
echo wtf > /tmp/mkinitcpio.wtf

args=()
package=0

install_preset() {
.....



2 - Running '/usr/bin/env bash' in terminal

gives me the following (tried with and without sudo)

[trevor@trevor-arch ~]$ /usr/bin/env bash
bash: /usr/bin/env: No such file or directory
[trevor@trevor-arch ~]$ sudo /usr/bin/env bash
sudo: /usr/bin/env: command not found

3 - I've kept an eye on my temp folder and have not seen the mkinitcpio.log appear

4 - Have run Syu again and updated to 6.11.5, while updating I kept an eye on the temp folder, no mkinitcpio.log appeared

5 - Re booted, still in 6.11.3 using uname -a to check and still no mkinitcpio.log

6 - Ran sudo pacman -U file://linux-headers-6.11.3.arch1-1-x86_64.pkg.tar.zst file://linux-6.11.3.arch1-1-x86_64.pkg.tar.zst to get back to 6.11.3 with no error messages at startup

I admit I'm getting lost here sad

Offline

#25 2024-11-02 08:35:07

seth
Member
Registered: 2012-09-03
Posts: 59,011

Re: [Solved] upgrading from kernel 6.11.3 to 6.11.5

seth wrote:

Please use [code][/code] tags.

[trevor@trevor-arch ~]$ /usr/bin/env bash
bash: /usr/bin/env: No such file or directory

There we go.

pacman -Qikk coreutils

And to figure how bad things are overall:

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backup

Online

Board footer

Powered by FluxBB