units: add unit that can auto-enables all suggested component/features

if enabled it will plug itself before systemd-sysupdate-update.service
and enable every component + feature that is suggested.
This commit is contained in:
Lennart Poettering
2026-07-15 13:27:48 +02:00
parent ca5ddf8cc0
commit 559f52ee3f
4 changed files with 34 additions and 1 deletions
+4
View File
@@ -872,6 +872,10 @@ units = [
'file' : 'systemd-sysinstall@.service',
'conditions' : ['ENABLE_SYSINSTALL'],
},
{
'file' : 'systemd-sysupdate-auto-enable.service',
'conditions' : ['ENABLE_SYSUPDATE'],
},
{
'file' : 'systemd-sysupdate-reboot.service',
'conditions' : ['ENABLE_SYSUPDATE'],
@@ -0,0 +1,21 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Automatically Enable All Suggested Components & Features for System Updates
Documentation=man:systemd-sysupdate-auto-enable.service(8)
Before=systemd-sysupdate-update.service
[Service]
Type=oneshot
ExecStart=systemd-sysupdate enable-component --component-suggested
ExecStart=systemd-sysupdate enable-feature --component-all --feature-all
[Install]
WantedBy=systemd-sysupdate-update.service