Skip to main content
Topic: Upgrade Creates Unexpected Changes (Read 914 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Upgrade Creates Unexpected Changes

I'm using the Community GTK Xlibre 7-18-25 iso

After upgrading, LightDM brightness is set so low in high light conditions I can barely see the screen.
Once into the Desktop, I opened the terminal to find ZSH is gone having been replaced by Bash.

Why are upgrades making configuration changes? If ZSH is the current default the upgrade shouldn't make Bash the default.

First, Annoy the Aspurgers people with the Kernel Beep.
Second, attacking the Aspurgers comfortability by changing default settings.

I tried to remove LightDM and my system was unbootable. It reminds of Pop_OS making Bluetooth drivers a dependency of the desktop.

Re: Upgrade Creates Unexpected Changes

Reply #1
Only chsh(1) by root can change your shell. The brightness issue can be anything from firmware upgrade to kernel regression.

Re: Upgrade Creates Unexpected Changes

Reply #2
that is the definition of update.... it changes things

Re: Upgrade Creates Unexpected Changes

Reply #3
Only chsh(1) by root can change your shell.

This is most confusing part from the report. I can understand everything else but upgrade chsh-ing makes no sense.

Re: Upgrade Creates Unexpected Changes

Reply #4
Only chsh(1) by root can change your shell.

This is most confusing part from the report. I can understand everything else but upgrade chsh-ing makes no sense.
nous is saying an update did not change the shell. A person, using chsh, altered the terminal environment.

If I didn't change the shell, someone is saying "I changed your shell. I am root." This is annoying.
I'll have to look for a way to add that to the audit log. I don't see any entries under the shell keys.

Code: [Select]
[tsedeq1]:~$ su
Password:
\[\033[1;32;40m\]\h\[\033[0;37;40m\]:\[\033[31;40m\][\[\033[1;34;40m\]\u\[\033[0;31;40m\]]\[\033[0;37;40m\]:\[\033[35;40m\]\w\[\033[1;33;40m\]$\[\033[0m\]
That's weird. Where is my Peggy Su? No root for me.
Another WRI moment.

Re: Upgrade Creates Unexpected Changes

Reply #5
I can confirm that after performing a wipe and re-install, I retain zsh during reboots.
When i update:
Code: [Select]
[tsedek1]:~% sudo pacman -Syu

Updating 126 packages including kernel updates, after rebooting, opening a terminal I'm greeted by Bash.
The only thing which has changed is the system update.

To try and get Zsh back, I ran 'chsh':
After running:
Code: [Select]
[tsedek1]:~# chsh -s /usr/bin/zsh tsedek1

Then I check to see what changed:
Code: [Select]
[tsedek1]:~$ echo $SHELL
/bin/bash

So far, nothing has changed.

Following the arch wiki, I ran:
Code: [Select]
[tsedek1]:~$ zsh

Went through the configuration menu.

After exit and save:
Code: [Select]
\[\033[1;32;40m\]\h\[\033[0;37;40m\]:\[\033[31;40m\][\[\033[1;34;40m\]\u\[\033[0;31;40m\]]\[\033[0;37;40m\]:\[\033[35;40m\]\w\[\033[1;33;40m\]$\[\033[0m\]

This is the first instance in the Audit Log that mentions Bash:
Code: [Select]
type=PROCTITLE msg=audit(08/05/2025 15:29:56.683:265063) : proctitle=/bin/sh -e /usr/share/libalpm/scripts/initswitch-hook update 
type=PATH msg=audit(08/05/2025 15:29:56.683:265063) : item=2 name=/lib64/ld-linux-x86-64.so.2 inode=4233902 dev=103:02 mode=file,755 ouid=root ogid=root rdev=00:00 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=PATH msg=audit(08/05/2025 15:29:56.683:265063) : item=1 name=/bin/sh inode=4194564 dev=103:02 mode=file,755 ouid=root ogid=root rdev=00:00 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=PATH msg=audit(08/05/2025 15:29:56.683:265063) : item=0 name=/usr/share/libalpm/scripts/initswitch-hook inode=5258983 dev=103:02 mode=file,755 ouid=root ogid=root rdev=00:00 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=EXECVE msg=audit(08/05/2025 15:29:56.683:265063) : argc=4 a0=/bin/sh a1=-e a2=/usr/share/libalpm/scripts/initswitch-hook a3=update
type=SYSCALL msg=audit(08/05/2025 15:29:56.683:265063) : arch=x86_64 syscall=execve success=yes exit=0 a0=0x55afa4530b80 a1=0x55afa45309d0 a2=0x55af9ef8d860 a3=0x0 items=3 ppid=2999 pid=4290 auid=tsedek1 uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=pts3 ses=1 comm=initswitch-hook exe=/usr/bin/bash key=T1059_Command_and_Scripting_Interpreter