Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #14223 - Handles atomic machine detection properly #81

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Mar 15, 2016

Made the code check for "Atomic Host" in /etc/os-release

Works great for redhat 7.2

@parthaa
Copy link
Contributor Author

parthaa commented Mar 15, 2016

Look at https://bugzilla.redhat.com/show_bug.cgi?id=1200122 for more info

@@ -23,8 +23,9 @@ chmod 644 $KATELLO_CERT_DIR/$KATELLO_SERVER_CA_CERT
echo "$KATELLO_DEFAULT_CA_DATA" > $KATELLO_CERT_DIR/$KATELLO_DEFAULT_CA_CERT
chmod 644 $KATELLO_CERT_DIR/$KATELLO_DEFAULT_CA_CERT

# if not atomic machine, regular rhel then handle traditional way
if [ -e "/run/ostree-booted" ]
# if atomic machine handlle it the atomic way, else handle the regular rhel way
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handle*

Made the code check for a IS_ATOMIC env variable, and expects that the
provisioning scripts will call that

Works great for redhat 7.2 + centos
@jlsherrill
Copy link
Contributor

ACK

@jlsherrill
Copy link
Contributor

thanks @parthaa

jlsherrill added a commit that referenced this pull request Mar 17, 2016
Fixes #14223 - Handles atomic machine detection properly
@jlsherrill jlsherrill merged commit 4da2557 into theforeman:master Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants