You are not logged in.
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
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
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
Well that's interesting. What does `pacman -Qikk mkinitcpio` show? What's in /etc/mkinitcpio.d/linux.preset?
Offline
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
pacman -vS --debug linux
Post the entire output.
Also
ls -lR /usr/local/share/libalpm/
Online
pacman -vS --debug linux
Post the entire output.
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
ls -lR /etc/pacman.d/hooks/
You didn't complete the installation and so no (failing) hook was triggered?
Online
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
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
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
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
downgraded kernel back to 6.11.3 so that I can post the complete pacman -Qikk glibc for you
Offline
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
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
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
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
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
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
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
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
I'll check this tomorrow as I can't do anything more tonight
Thanks in advance
Offline
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/mirrorlistSo i can disable/ delete it ?
That's only one of the things that needs done. Read the link.
Offline
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
Offline
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