/srv/irclogs.ubuntu.com/2013/03/15/#ubuntu-x.txt

agrestringerehello, I'm looking to do some testing on 13.04 so I wanted to know the best way upgrade from 12.04 to the 13.04 daily build...02:48
RAOFagrestringere: You'll need to go through 12.10, but that'll be easy; that's just a do-release-upgrade away. I think you can also ‘sudo do-release-upgrade -d -p’ to get from 12.10 to raring, but if we haven't got that sorted out yet you can simply edit /etc/apt/sources.list and replace “quantal” with “raring”.02:53
agrestringereRAOF, okay thanks, is there a way to revert if things get really messed up?02:54
RAOFDowngrades are not supported; you can, however, try it in a sandbox by passing “--sandbox” to do-release-upgrade02:55
bjsnider_a downgrade would be a good thing to use a btrfs snapshot for03:17
=== bjsnider_ is now known as bjsnider
RAOFIf you happened to be using btrfs, yeah, it's entirely safe.03:17
RAOF(Modulo btrfs bugs)03:17
bjsnideri was speaking more theoretically at this point03:18
RAOFOh, it's implemented - check out apt-btrfs-snapshot.03:18
bjsnideryeah but i'm not sure people should be using btrfs yet. not convinced it's ready freddy03:19
RAOFIt's actually _not_ 100% safe, because applications might change their configuration in non-forwards-compatible ways; it's not uncommon for at application to migrate to a new format on run, which would leave your data stranded if you roll back.03:20
bjsnideryou'd have to back up /home too03:20
bjsnidercertain aspects of it03:20
RAOFRight, and it becomes an essentially impossible project.03:20
bjsniderimpossible?03:21
RAOFHow do you tell if an application has moved something into a form that is unreadable by one of its previous versions?03:21
bjsniderwell, you back up the key dirs, and then replace the upgraded ones upon downgrading03:22
bjsnider.local, .cache et al.03:22
RAOFSo, now we're destroying work on rollback.03:23
bjsniderright, but i was also assuming the original question was the case03:23
bjsnider"do some testing"03:23
bjsnidernot permanently upgrade03:23
RAOFAh, so we've got different goals for ‘rollback’. Fair enough.03:24
RAOFIn that case you'd just snapshot $HOME as well as /03:24
bjsnideri just interpreted that phrasing as being very temporary03:24
RAOFMake it very clear that going back will wipe your system back to the previous state.03:24
bjsnideri dunno why there isn't a dpkg-downgrade type thing03:28
RAOFBecause of all these problems?03:29
bjsniderwell, if the user wants to do this, it's their responsibility03:30
RAOFHaving a dpkg-downgrade would suggest that you could downgrades are supported, which is quite different from "you can try this, and if it doesn't work you can throw away everything you've done after this point and go back”03:30
RAOFYou obviously *can* downgrade packages - apt-get install foo=$OLD_VERSION will work as long as $OLD_VERSION is in the archive, and you can manually do it with dpkg and downloading from launchpad essentially as far back as you care to go.03:31
ScottKAnd if it breaks, you get to keep both halves..03:48
agrestringereokay, so how does the sandbox work?03:55
agrestringereI'll read the documentation, thanks for the info...03:57
RAOFagrestringere: It sets up an overlay filesystem, and makes all the changes on that overlay.03:57
RAOFSo you can go back by throwing away the overlay, but if you want to keep it you should probably throw away the overlay and upgrade again without the sandbox.03:58
agrestringerethat's what I'll do, I read that it installs root to temp, looks cool, I'll give it a shot03:59
agrestringereinteresting view on rollbacks, it doesn't make sense that you can't rollback, I mean if upgrading is just a dpkg thing can't you store an entire history of actions and changes like you do in git and just "checkout 12.04.2"?04:04
RAOFThat's what the btrfs discussion was. You certainly *can* do that, if you're willing to have your *entire* system rolled back to how it was when you installed 12.04.2. Including all of your personal data.04:09
RAOFThat's not what people want from a rollback, though.04:09
RAOFAnd when you try to start implementing what people want, you run into all the funky edgecases.04:09
agrestringereseems like something only useful for server people because of uptime concerns04:10
RAOFRollback?04:11
RAOFNo, it'd totally be useful in a fairly wide range of circumstances if it were possible to implement well. :)04:12
agrestringereComplexity.04:15
tjaaltonSarvatt: great, thanks04:28
agrestringerehave a good night, once again thanks for the instructions04:31
mlankhorstmorning05:46
xnoxRAOF: well there is apt-brtfsnapshot and by default we have @ and @home separate. So one can roll-back /system/ but not personal data, but there are all sorts of corner cases.09:32
tjaaltonone could separate dotfiles from $home..09:32
xnoxcause e.g. postgresql databases in /var/lib are _not_ system, but data yet again which shouldn't be rolle back.09:33
=== yofel_ is now known as yofel

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!