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

Replaced /etc/HOSTNAME using cross platform /etc/hostname #208

Merged
merged 9 commits into from Jun 4, 2014

Conversation

mchf
Copy link
Member

@mchf mchf commented Jun 3, 2014

bnc#858908

@mchf
Copy link
Member Author

mchf commented Jun 3, 2014

it was tested as DUD using build 436

Ops.add(fqhostname, "\n")
)

DNS.create_hostname_link
Copy link
Member

Choose a reason for hiding this comment

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

why not simple create_hostname_link?

Copy link
Member Author

Choose a reason for hiding this comment

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

ugh ... copy & paste

fqhostname = install_inf_hostname
end
end
if (Mode.installation || Mode.autoinst) && FileUtils.Exists("/etc/install.inf")
Copy link
Member

Choose a reason for hiding this comment

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

Just idea now...why not use it for upgrade? I think we want in upgrade possibility to different network then on running system

Copy link
Member Author

Choose a reason for hiding this comment

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

upgrade mode is handled elsewhere. And yes, there is huge duplication of code ... but I need to investigate it more deeply.

In fact, this code is not accessed during upgrade.

@jreidinger
Copy link
Member

LGTM

@mchf
Copy link
Member Author

mchf commented Jun 4, 2014

Tested even in installed system.

Thanks for review.

mchf added a commit that referenced this pull request Jun 4, 2014
Replaced /etc/HOSTNAME using cross platform /etc/hostname
@mchf mchf merged commit e162683 into yast:master Jun 4, 2014
@mchf mchf deleted the bnc858908-etc-hostname branch June 4, 2014 08:57
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.

None yet

2 participants