# State lost after upgrade

**URL:** https://forums.suse.com/t/state-lost-after-upgrade/1959
**Category:** RancherOS
**Created:** [March 7, 2016, 9:11am UTC](https://forums.suse.com/t/state-lost-after-upgrade/1959 "2016-03-07T09:11:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![zsoltm](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/zsoltm/32/1000_2.png) [@zsoltm](https://forums.suse.com/u/zsoltm)
#### Post date: [March 7, 2016, 9:11am UTC](https://forums.suse.com/t/state-lost-after-upgrade/1959/1 "2016-03-07T09:11:28Z")

</div>

I have a few low-tech boxes for experimenting with only a single USB flash drive. Installed RancherOS from a temporary flash drive using simply `ros install -d /dev/sda -c cloud-config.yml`, with a pretty basic cloud-config, with just hostname and a ssh key in it. I was happy using 0.4.3-RC2 with this setup, until I tried to upgrade to 0.4.3 final.  
Everything went smooth with `ros upgrade` until I the box rebooted and I tried to ssh into it: after a few unsuccessful attempts I noticed that everything is reverted back to defaults: the box had the default hostname, a different dhcp client-id, ssh keys and so on. Tried to re-install RancherOS 0.4.3 from scratch, with the same flash-drive to flash-drive method, but after rebooting without the flash-drive used as installation source, I had the same issue, no configuration was persisted at all, I got default host name, etc.  
I’m a bit stuck here, am I doing something wrong? Is there something related to configuration persistence changed since 0.4.3-RC2? (Haven’t tried to re-install RC2 from scratch yet).

I tried to play with cloud-config.yml with various rancher.state.dev settigns, but had no luck.

---

<div class="post-metadata">

### Author: ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)
#### Post date: [March 8, 2016, 1:11am UTC](https://forums.suse.com/t/state-lost-after-upgrade/1959/2 "2016-03-08T01:11:59Z")

</div>

The default busybox console is ephemeral. You probably want the Debian or Ubuntu ones: [http://docs.rancher.com/os/configuration/custom-console/](http://docs.rancher.com/os/configuration/custom-console/)

---

<div class="post-metadata">

### Author: ![liyi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/liyi/32/4609_2.png) [@liyi](https://forums.suse.com/u/liyi)
#### Post date: [March 8, 2016, 2:05pm UTC](https://forums.suse.com/t/state-lost-after-upgrade/1959/3 "2016-03-08T14:05:30Z")

</div>

Hi Vincent. I tested previously in ubuntu console. If I modify something in /etc/modules directory. After upgrade, that change lost, is this a expect behaviour?

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [March 30, 2016, 6:20pm UTC](https://forums.suse.com/t/state-lost-after-upgrade/1959/4 "2016-03-30T18:20:04Z")

</div>

@liyi If you are in the ubuntu console, changes in `etc/modules` should be persisted after upgrade.

---

<div class="post-metadata">

### Author: ![liyi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/liyi/32/4609_2.png) [@liyi](https://forums.suse.com/u/liyi)
#### Post date: [March 30, 2016, 7:27pm UTC](https://forums.suse.com/t/state-lost-after-upgrade/1959/5 "2016-03-30T19:27:52Z")

</div>

@denise hmm, I will re-test to see if it is the case. How about /lib/modules? Changes there is supposed to list, right? I have tested many times, that directory is always overwritten.
