Files
kde-linux/update.sh
2024-10-03 15:42:37 +09:30

14 lines
514 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
set -e
# Trigger mount of ESP by accessing it.
# TODO file bug that sysupdate doesn't do that.
stat /efi/EFI
export TAR_OPTIONS="--zstd"
# FIXME set up signing shebang so we can run with verify
exec systemd-inhibit --what=sleep:shutdown --mode=block --who="Systemd Sysupdate" --why="Updating System" /usr/lib/systemd/systemd-sysupdate --verify=no "$@"