Ask Your Question
0

Where does Anaconda find the old hostname?

asked 2014-07-19 20:13:28 -0500

amerts gravatar image

updated 2014-07-19 21:37:39 -0500

abadrinath gravatar image

When re-installing Fedora over another installation of Linux, Anaconda will find the hostname of the previous installation somehow. I recently got a KVM VPS from a not too small provider and after installation my hostname was set to someones mail server hostname. I confirmed that the hostname that's used during the initrd is the old hostname and the hostname after the root filesystem is pivoted over is the correct newer hostname. The VPS is managed by SolusVM and the initrd hasn't been regenerated since dracut created it during the install process so I figured wherever the information leak is, it must have been through the same method Anaconda uses to reuse a previous hostname.

edit retag flag offensive close merge delete

Comments

/etc/sysconfig/network or /etc/hostname?

abadrinath gravatar imageabadrinath ( 2014-07-19 21:30:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-22 01:27:00 -0500

lzap gravatar image

DHCP protocol is able to provide hostname and if this is your VPS provider, maybe they pre-allocated the IP address with some given hostname for you. Or the DHCP might be configured to reuse the hostname too. Technically this is possible, but not sure what is your case. Also when reinstalling, Anaconda can read the hard drive (/etc/hostname and others). Try to wipe your drive prior rebooting to the installer (using dd for example).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-07-19 20:13:28 -0500

Seen: 122 times

Last updated: Jul 22 '14