Hi,
I'm creating a RHEL7 VM that I will upload to AWS and convert into an AMI from which I will create instances.
I've found lots of good info online to help with 'anonymizing' the VM, but I am having problems with mapper devices.
If I cat /etc/fstab I see lines like these:
Code:
/dev/mapper/rhel_myhostname-root / xfs defaults 0 0
/dev/mapper/rhel_myhostname-swap swap swap defaults 0 0
I don't want 'myhostname' to appear there. If I look at the output of dmsetup I see this:
Code:
# dmsetup ls
rhel_myhostname-swap (253:1)
rhel_myhostname-root (253:0)
I can use 'dmsetup rename' to rename those devices, but not in a persistent way - it always reverts after a reboot.
Where is the original hostname stored that it is coming back in this way? Does this take me into the realm of udev? Is there a simple way to remove this reference to the hostname from devices (I'd be completely happy with 'rhel-swap' and 'rhel-root')?
Thanks in advance for any help,
Rotty
PS, the VM is on Hyper-V.