Skip to content
Snippets Groups Projects
Verified Commit 8447742b authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

systemd/systemd: ship a default user preset

This adds a default preset for user units, that disables them by
default. This behavior is identical to what we do with system presets,
which means that if we want a unit enabled by default then we need
to add a preset for it or rely on some other unit to pull it in
automatically. Without this default preset, user units are enabled by
default when `systemctl preset` is run on them, which may not always be
the desired behavior (i.e. we don't want this behavior with system units).
parent d9c21e90
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ pkgname=systemd
# currently tracking git MR
pkgver=256.11
_pkgver="musl-v${pkgver//_/-}-split-usr"
pkgrel=0
pkgrel=1
pkgdesc="System and service manager"
url="https://github.com/systemd/systemd"
arch="all !ppc64le !s390x" # blocked by pmboostrap not supporting
......@@ -220,8 +220,10 @@ package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C build
# ship default policy to leave services disabled
mkdir -p "$pkgdir"/usr/lib/systemd/system-preset
echo 'disable *' > "$pkgdir"/usr/lib/systemd/system-preset/99-default.preset
for type in system user; do
mkdir -p "$pkgdir"/usr/lib/systemd/"$type"-preset
echo 'disable *' > "$pkgdir"/usr/lib/systemd/"$type"-preset/99-default.preset
done
install -Dm755 "$srcdir"/systemd-apk-macros.sh -t \
"$pkgdir"/usr/lib/systemd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment