Project

General

Profile

Actions

Bug #14223

closed

Update katello-rhsm-consumer for atomic

Added by Partha Aji almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The mechanism used by Katello to determine if a host is atomic is flawed at the provisioning time.
https://github.com/Katello/puppet-certs/blob/master/templates/rhsm-katello-reconfigure.erb#L27
Katello checks for

if [ -e "/run/ostree-booted" ] at the provisioning time, which doesnot exist.
then
  #atomic setup

This needs to be replaced with

grep -i 'Atomic Host' /etc/os-release 2>&1> /dev/null
 if [ $? -eq 0 ]
 then
   #atomic setup
Actions

Also available in: Atom PDF