aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/pacman-offline.service
blob: bde311f3ec58e1227a3d880eca5806551c6cacd5 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# (C) 2017-2025 by Christian Hesse <mail@eworm.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

[Unit]
Description=Offline system update with pacman
ConditionPathIsSymbolicLink=/system-update
DefaultDependencies=false
Requires=sysinit.target dbus.socket
After=sysinit.target dbus.socket
Before=shutdown.target system-update.target
OnFailure=reboot.target

[Service]
Type=oneshot
# Pretty print to tty...
StandardOutput=tty
StandardError=tty
# ... or use this for debugging - less pretty, but with output in journal.
#StandardOutput=journal+console
#StandardError=journal+console
ExecStartPre=-/usr/bin/plymouth change-mode --updates
ExecStartPre=-/usr/bin/plymouth system-update --progress=20
ExecStart=/usr/lib/systemd/scripts/pacman-offline