Skip to content

openSUSE/os-update

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

os-update

Update systems with zypper and reboot automatically if necessary.

Introduction

os-update runs daily via systemd timers (so can be configured to any time you want) and updates the system in a defined way. If the updated packages require a reboot, either rebootmgr is notified (if running) or a reboot is done via systemctl reboot.

It can be configured to do a full system upgrade (e.g. zypper dup for rolling release distributions like openSUSE Tumbleweed), to update only packages (e.g. zypper up for something like SUSE Linux Enterprise) or to apply only security updates (e.g. zypper patch --category security).

Additional there is a tool systemd-mail-status which implements "MAILTO of cron for systemd timer". It is called by systemd-status-mail@.service if the service is configured for the OnFailure and/or OnSuccess case of a systemd unit. It sends an email to a configureable address with the name of the service, the hostname and the output of systemctl status --full <service>.

CONFIGURATION OPTIONS

UPDATE_CMD="auto" - Specifies how to update the system. Valid values are "auto", "dup", "up" and "security". "auto" will select the best fitting command depending on the OS.

REBOOT_CMD="auto" - Specifies how the system will be rebooted in case an update requires this. Valid values are "auto", "rebootmgr", "reboot" and "none". "auto" will use rebootmgr if installed and running, else systemctl reboot. "none" will only print an informative message that a reboot is required, but not trigger any.

RESTART_SERVICES="yes" - Specifies if after a successful update services should automatically restarted, if they are still using old libraries.

IGNORE_SERVICES_FROM_RESTART="dbus" - Specifies a list of services which should not be restarted

SERVICES_TRIGGERING_REBOOT="dbus" : Specifies a list of services which trigger a reboot

CONFIGURATION FILES

/usr/etc/os-update.conf - Vendor provided configuration file, contains the defaults.

/etc/os-update.conf - Admin provided configuration file, should only contain the variables which were changed by the system administrator compared to the vendor configuration file.

About

Update automatically package based OS and reboot if necessary

Resources

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •