current shell's bash history lost on reboot

M. Edward (Ed) Borasky znmeb at znmeb.net
Tue Nov 25 09:32:25 UTC 2014


I rebooted a VM running Atomic and lost bash history, but I was unaware
that reboots were supposed to *preserve* bash history! I thought that was
expected behavior - a violent end to a process wouldn't necessarily allow
its buffers to be flushed.

On Mon, Nov 24, 2014 at 11:36 PM, Kushal Das <kushaldas at gmail.com> wrote:

> On Sun, Nov 23, 2014 at 8:32 PM, Dusty Mabe <dusty at dustymabe.com> wrote:
> >
> > 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?
> >
> I can not reproduce this in a few images I tried.
>
> Kushal
> --
> Fedora Cloud Engineer
> CPython Core Developer
> Director Python Software Foundation
> http://kushaldas.in
> _______________________________________________
> cloud mailing list
> cloud at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/cloud
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>



-- 
Twitter: http://twitter.com/znmeb; Computational Journalism on a Stick
http://j.mp/CompJournoStickOverview

Remember, if you're traveling to Bactria, Hump Day is Tuesday and Thursday.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/cloud/attachments/20141125/da8b1d14/attachment.html>


More information about the cloud mailing list