Files
kde-linux/mkosi.finalize.d/99-var.sh.chroot
Harald Sitter 6a5f68528c fixup! carry spool directory into actual installation
correct path would be nice
2025-09-03 04:43:02 +02:00

14 lines
593 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: 2025 Harald Sitter <sitter@kde.org>
set -eux
# Copy /var/lib/flatpak into factory dir for tmpfiles.d (see tmpfiles.d docs).
[ -d /usr/share/factory/var/lib ] || mkdir --parents /usr/share/factory/var/lib
cp --archive --no-target-directory --update=all /var/lib/flatpak /usr/share/factory/var/lib/flatpak
# Same for spool (cups)
# factory/var already exists, no need to mkdir it.
cp --archive --no-target-directory --update=all /var/spool /usr/share/factory/var/spool