You are not logged in.

#1 2024-12-06 01:12:14

Sebastian H.
Member
Registered: 2024-11-23
Posts: 8

[Solved] Reinstalled systemd - nuked most of my services

Hey so to get right to the point, I did some stupid shit with /sbin/init and ended up reinstalled systemd with pacman -S systemd. It seems this has removed most of my services and now I have no audio.
Is there an 'easy' way to just get the default services for my installed packages without breaking too much?

Thanks in advance ✌️

Edit:
Turns out I was stupid and did chmod 744 on the /sbin/init link, fixed by chmod 755 /usr/lib/systemd/systemd

Last edited by Sebastian H. (2024-12-06 02:43:48)

Offline

#2 2024-12-06 01:29:06

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,451

Re: [Solved] Reinstalled systemd - nuked most of my services

It's much more likely that the "stupid shit" you mention caused the loss of services and audio, and not "pacman -S systemd", since that command by itself will not alter your configuration. So you'll have to post your actual commands you performed prior to pacman -S systemd for us to see what could have caused that.

Offline

#3 2024-12-06 02:14:37

Sebastian H.
Member
Registered: 2024-11-23
Posts: 8

Re: [Solved] Reinstalled systemd - nuked most of my services

I wanted to link zsh to init which I did with:

cd /sbin
cp init init.bak
ln -s /bin/zsh init
reboot

This failed and dropped me in a recovery environment with rootfs because the filesystem is mounted at "new_root" in the late stages of the boot process so it should have been "ln -s /new_root/bin/zsh".
Didn't know any of this at the time and just moved init.bak back which wasn't a symlink anymore but a copy of systemd.

mv init.bak init

It worked and I tried recreating the symlink with

ln -s /usr/lib/systemd/systemd

which didnt work for the same reason so I decided to just reinstall systemd with

pacman -S systemd

hoping it would fix itself.
This didn't help and I started reading up on how everything actually works and recreated the link with

ln -s ../lib/systemd/systemd

Now I have no sound and pactl is reporting

$ pactl info
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

Last edited by Sebastian H. (2024-12-06 02:20:29)

Offline

#4 2024-12-06 02:29:05

Sebastian H.
Member
Registered: 2024-11-23
Posts: 8

Re: [Solved] Reinstalled systemd - nuked most of my services

Hmm running systemctl --failed I get:

$ systemctl --failed
  UNIT              LOAD   ACTIVE SUB    DESCRIPTION              
● user@1000.service loaded failed failed User Manager for UID 1000
● user@972.service  loaded failed failed User Manager for UID 972

I will investigate further...

Edit:
Turns out chmod on a link changes the permissions of the linked file...
But thank you for taking the time to help, hope you have a great day :)

Last edited by Sebastian H. (2024-12-06 02:42:57)

Offline

Board footer

Powered by FluxBB