#!/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>

# Bless userspace.
# Blessing of a boot on KDE Linux is a three step process.
# 1) the userspace gets blessed here via a /run marker (means system-wide middleware services are up - such as networkmanager)
# 2) the user logs in and a complete session startup blesses the session
# 3) when all requirements are met the boot gets actually blessed

set -ex

systemctl mask --runtime systemd-bless-boot.service
systemctl daemon-reload

/usr/lib/systemd/systemd-bless-boot indeterminate

touch /run/kde-linux-bless-userspace
