summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/pacman-offline-prepare.service10
-rw-r--r--systemd/pacman-offline-prepare.timer9
2 files changed, 19 insertions, 0 deletions
diff --git a/systemd/pacman-offline-prepare.service b/systemd/pacman-offline-prepare.service
new file mode 100644
index 0000000..59cc76f
--- /dev/null
+++ b/systemd/pacman-offline-prepare.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Prepare pacman offline system-update
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/pacman-offline -y
+ProtectSystem=on
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
diff --git a/systemd/pacman-offline-prepare.timer b/systemd/pacman-offline-prepare.timer
new file mode 100644
index 0000000..75ce355
--- /dev/null
+++ b/systemd/pacman-offline-prepare.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Prepare pacman offline system-update
+
+[Timer]
+OnBootSec=5min
+OnUnitActiveSec=1d
+
+[Install]
+WantedBy=timers.target