From 139ee7579b85d7b4aef7485cbdb038d3b155b7f2 Mon Sep 17 00:00:00 2001 From: Justin Zobel Date: Thu, 3 Oct 2024 15:37:20 +0930 Subject: [PATCH] Inhibit suspend during update --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 860e2fe..d2e2939 100755 --- a/update.sh +++ b/update.sh @@ -10,4 +10,4 @@ stat /efi/EFI export TAR_OPTIONS="--zstd" # FIXME set up signing shebang so we can run with verify -exec /usr/lib/systemd/systemd-sysupdate --verify=no "$@" +exec systemd-inhibit --what=sleep:shutdown --mode=block --who="Systemd Sysupdate" --why="Updating System" /usr/lib/systemd/systemd-sysupdate --verify=no "$@"