Skip to content

Commit

Permalink
Merge pull request #11980 from jan-cerny/issue11944
Browse files Browse the repository at this point in the history
Fix zipl_bootmap_is_up_to_date
  • Loading branch information
Mab879 authored May 9, 2024
2 parents cbd4aa8 + bb3dd2c commit 4db5d9a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@
path: /etc/zipl.conf
register: zipl_conf

# TODO: handle /boot/loader/entries/*.conf
- name: "Obtain stats of /boot/loader/entries"
stat:
path: /boot/loader/entries
register: boot_loader_entries

- name: "Update zIPL bootmap"
command: /usr/sbin/zipl
changed_when: True
when: boot_bootmap.stat.mtime is defined and zipl_conf.stat.mtime is defined and boot_bootmap.stat.mtime < zipl_conf.stat.mtime
when:
- boot_bootmap.stat.mtime is defined
- zipl_conf.stat.mtime is defined
- boot_loader_entries.stat.mtime is defined
- boot_bootmap.stat.mtime < zipl_conf.stat.mtime or boot_bootmap.stat.mtime < boot_loader_entries.stat.mtime
6 changes: 4 additions & 2 deletions ssg/build_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,11 +693,13 @@ def _add_rules_xml(self, group, rules_to_not_include, env_yaml):
r'install_smartcard_packages|' +
r'sshd_set_keepalive(_0)?|' +
r'sshd_set_idle_timeout|' +
r'chronyd_specify_remote_server$')
r'chronyd_specify_remote_server|' +
r'zipl_.*_argument(_absent)?$')
priority_order = ["enable_authselect", "installed", "install_smartcard_packages", "removed",
"enabled", "disabled", "sshd_set_keepalive_0",
"sshd_set_keepalive", "sshd_set_idle_timeout",
"chronyd_specify_remote_server"]
"chronyd_specify_remote_server",
"argument"]
rules_in_group = reorder_according_to_ordering(rules_in_group, priority_order, regex)

# Add rules in priority order, first all packages installed, then removed,
Expand Down

0 comments on commit 4db5d9a

Please sign in to comment.