You are not logged in.

#1 2025-10-28 02:28:02

phoenix324
Member
Registered: 2023-08-23
Posts: 92

[solv] issue if shutdown/reboot/sleep when pacman upgrading the system

Is there any serious issue that can be caused if system is shutdown/reboot/sleep during pacman upgrading process? If yes, is there any inbuilt mechanism to prevent this? I came upon https://github.com/amishmm/pacman-systemd-inhibit.

Last edited by phoenix324 (2025-10-30 06:05:58)

Offline

#2 2025-10-28 02:40:34

killertofus
Member
Registered: 2025-02-10
Posts: 90

Re: [solv] issue if shutdown/reboot/sleep when pacman upgrading the system

Offline

#3 2025-10-28 02:41:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,247

Re: [solv] issue if shutdown/reboot/sleep when pacman upgrading the system

Yes, it can cause MASSIVE problems, and often cause an unbootable system. No, there is nothing to prevent it. Don't do something dumb while running pacman.

Offline

#4 2025-10-28 04:30:15

phoenix324
Member
Registered: 2023-08-23
Posts: 92

Re: [solv] issue if shutdown/reboot/sleep when pacman upgrading the system

What about if pacman comes prebuilt with these hooks https://github.com/amishmm/pacman-systemd-inhibit. Can it help?

Many times i have update running on different workspace and as it takes time to download and apply the update, i forget about the update while doing work on different workspace and then i supend the system when i leave my desk.

Offline

#5 2025-10-28 09:12:04

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,964

Re: [solv] issue if shutdown/reboot/sleep when pacman upgrading the system

https://aur.archlinux.org/packages/pacm … md-inhibit will prevent sleeps etc. to the extend that those are triggered/prevented via the systemd inhibition stuff.
Not if you've xautolock write into the power state.

Fwwi, sleeping (S2,S3 and probably S4) should™ be fine provided the wakeup works properly (you've ideally just paused the system) - ie. it's risky, but not inherently devastating and you can also just manually inhibit the various actions.

Offline

#6 2025-10-28 10:27:29

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,097

Re: [solv] issue if shutdown/reboot/sleep when pacman upgrading the system


str( @soyg ) == str( @potplant ) btw!

Online

Board footer

Powered by FluxBB