HomeClusterLabs Projects

ocf-distro: Improve robustness and specificity (#1558)

Description

ocf-distro: Improve robustness and specificity (#1558)

  • ocf-distro: Add SUSE check to get_os_ver()
  • ocf-distro: Reduce code duplication, functionalize version-get
  • ocf-distro: Add is_debian_based() and is_suse_based() functions
  • azure-lb: Use is_suse_based() when setting OCF_RESKEY_nc_default
  • apache: Use is_suse_based() and is_debian_based()
  • ocf-distro: Try os-release first to get release ID
  • ocf-distro: Make uname -s the final fallback for release ID
  • ocf-distro: Normalize OS release IDs in get_release_id()
  • ocf-distro: Functionalize getting OS from legacy source
  • ocf-distro: Try os-release first to get OS version
  • ocf-distro: Functionalize getting OS version from legacy source
  • ocf-distro: Functionalize processing of retrieved values

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
Reid Wahl <30487349+nrwahl2@users.noreply.github.com>Authored on Nov 27 2020, 6:34 AM
GitHub <noreply@github.com>Committed on Nov 27 2020, 6:34 AM
Parents
rR8f7e35455453: Merge pull request #1587 from oalbrigt/crypt-allow-encrypted_dev-to-be-symlink
Branches
Unknown
Tags
Unknown

Event Timeline