mirror of
https://github.com/KDE/kde-linux.git
synced 2026-05-18 21:36:22 -04:00
the tombstone is a bit broken in that it doesn't use the correct name. sort the names correctly (first is preferred) and also bring back the old names so they eventually get cleaned up
29 lines
779 B
Bash
Executable File
29 lines
779 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>
|
|
|
|
# Make sure user is root before starting
|
|
if [ "$EUID" -ne 0 ]
|
|
then echo "Please run as root or with run0"
|
|
exit 1
|
|
fi
|
|
|
|
set -e
|
|
|
|
# Trigger mount of ESP by accessing it.
|
|
# TODO file bug that sysupdate doesn't do that.
|
|
stat /efi/EFI
|
|
|
|
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
|
|
export TAR_OPTIONS="--zstd"
|
|
# FIXME set up signing shebang so we can run with verify
|
|
exec systemd-inhibit \
|
|
--what=sleep:shutdown \
|
|
--mode=block \
|
|
--who="KDE Linux Updater" \
|
|
--why="Updating System" \
|
|
/usr/lib/systemd/systemd-sysupdate \
|
|
--definitions="$SCRIPT_DIR/mkosi.extra/usr/lib/sysupdate.d" \
|
|
--verify=no \
|
|
"$@"
|