current shell's bash history lost on reboot
Dusty Mabe
dusty at dustymabe.com
Sun Nov 23 15:02:37 UTC 2014
The other day during the Atomic Test Day jzb and I noticed that we
were losing bash history (seemingly randomly). Today I dug into it a
bit more. If you reboot a machine from a bash session then you will
lose all of your history for that session. Note the following is from
the F21 Cloud image:
[root at f21 ~]# cat .bash_history | wc -l
2
[root at f21 ~]# history | wc -l
123
[root at f21 ~]# reboot
Connection to 172.24.4.228 closed by remote host.
Connection to 172.24.4.228 closed.
[root at localhost ~(keystone_admin)]#
[root at localhost ~(keystone_admin)]# ssh -i key1.pem
fedora at 172.24.4.228
Last login: Thu Nov 20 18:54:48 2014 from 172.24.4.225
[fedora at f21 ~]$
[fedora at f21 ~]$ sudo su -
[root at f21 ~]# history | wc -l
3
Has anyone else seen this? Is there an existing bug report?
If you guys can confirm you are having this behavior then I will open
a report. Alos please see [1] [2] where suse was having a similar problem.
Dusty
[1] - https://bugzilla.novell.com/show_bug.cgi?id=671719
[2] - https://bugzilla.novell.com/show_bug.cgi?id=652633
More information about the cloud
mailing list