I have a Raspberry pi 3b that I am trying to change the hostname from the default of raspberry. Every time I change it and then reboot, the hostname is still raspberrypi.
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster
uname -r yields: 5.10.17-v7+
The image on the SD card was created by using rpi-imager, on an RPI4, selecting Raspberry PI OS Lite (32-bit).
I tried changing the host name using raspi-config. I don't take the default reboot now so I can verify the change. If I cat /etc/hostname, I see the new hostname in the hostname file. I reboot and the hostname is raspberrypi again. I check /etc/hostname and see that the hostname is reverted back to raspberrypi.
I've also tried manually editing /etc/hostname, saving the edit, cat-ing /etc/hostname to verify that the change I made is there and it is. Reboot, and the change is lost; once again, /etc/hostname says raspberrypi.
Any ideas why this is happening?
Thanks in advance.