- Contact the registration server (SCC/RMT) to get the self-update URL - Configure fallback URL - Do not configure the network if "rd.neednet=0" boot option is used - In openSUSE self-update is skipped as there is no self-update repository configured, but it is still possible to use a custom self-update repository
29 lines
889 B
Desktop File
29 lines
889 B
Desktop File
[Unit]
|
|
Description=Live system self update
|
|
DefaultDependencies=no
|
|
|
|
# see https://man7.org/linux/man-pages/man7/dracut.bootup.7.html
|
|
# for the dependency order of the dracut services
|
|
|
|
# after network is configured
|
|
After=network-online.target
|
|
# after /sysroot is mounted
|
|
After=initrd-fs.target
|
|
# before running the pre-pivot dracut hooks (before the driver update)
|
|
Before=dracut-pre-pivot.service
|
|
# flag to skip the self-update
|
|
ConditionPathExists=!/run/live-self-update/skip
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=live-self-update
|
|
StandardOutput=journal+console
|
|
# always wait until the self update is fully finished, booting a half updated
|
|
# system could have nasty side effects, if the service gets stuck it can be
|
|
# manually disabled with the "inst.self_update=0" boot parameter
|
|
TimeoutStartSec=infinity
|
|
SyslogIdentifier=live-self-update
|
|
RemainAfterExit=true
|
|
|
|
[Install]
|
|
WantedBy=initrd.target
|