Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-28 Thread Tom Gundersen
On Sun, Oct 28, 2012 at 3:50 PM, Yclept Nemo wrote: >> create a new subvolume as a snapshot of / >> mount the new subvolume on /mnt/ >> pacman -Syu --root=/mnt >> mark the new subvolume as the default one > > How much space does a subvolume/snapshot require? It is copy-on-write, so at first it ta

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-28 Thread Yclept Nemo
> create a new subvolume as a snapshot of / > mount the new subvolume on /mnt/ > pacman -Syu --root=/mnt > mark the new subvolume as the default one > In the initramfs, you need an emergency facility to let the user list > the available subvols (btrfs su list /) and choose one to mount (which > wo

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-27 Thread Martín Cigorraga
On Thu, Oct 25, 2012 at 12:02 PM, Tom Gundersen wrote: > On Thu, Oct 25, 2012 at 3:50 PM, Leonidas Spyropoulos > What I thought would be nice was the ability for an upgrade to take > effect on the next reboot without touching the running system. No need > to integrate with pacman, a wrapper in ba

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-26 Thread Thomas Bächler
Am 25.10.2012 17:03, schrieb Jan Steffens: > I suppose a shell script would use the btrfs command to manipulate the > FS, while pacman would probably use IOCTLs? I don't know the topic too well, but this would make sense. signature.asc Description: OpenPGP digital signature

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-26 Thread Thomas Bächler
Am 25.10.2012 17:20, schrieb Christoph Rissner: >> If you have /boot on a btrfs, you ought to be slapped upside the head. :p > > :) > I don't have so far, but I was thinking about it. Wouldn't it be nice to > have a matching kernel for both the backup and the updated subvol? I agree. /boot on btr

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-26 Thread Leonidas Spyropoulos
Hey Tom On Thu, Oct 25, 2012 at 4:02 PM, Tom Gundersen wrote: > On Thu, Oct 25, 2012 at 3:50 PM, Leonidas Spyropoulos > wrote: >> Archlinux is supporting btrfs for root filesystem some time now. Have any >> work or thoughts been done for supporting snapshots before update packages? >> This way y

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-25 Thread Christoph Rissner
On Thu, 25 Oct 2012 17:16:02 +0200, Jan Steffens wrote: > On Thu, Oct 25, 2012 at 5:11 PM, Christoph Rissner wrote: > > On Thu, 25 Oct 2012 17:03:46 +0200, Jan Steffens > > wrote: > >> Basically you tell the FS to subvol / to a location like > >> /.pacmansnaps/$datetime. > > > > And don't forge

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-25 Thread Jan Steffens
On Thu, Oct 25, 2012 at 5:11 PM, Christoph Rissner wrote: > On Thu, 25 Oct 2012 17:03:46 +0200, Jan Steffens > wrote: >> Basically you tell the FS to subvol / to a location like >> /.pacmansnaps/$datetime. > > And don't forget about /boot, or any other relevant btrfs mountpoint. > Right? > > Bye

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-25 Thread Jan Steffens
On Thu, Oct 25, 2012 at 4:23 PM, Thomas Bächler wrote: > Am 25.10.2012 15:50, schrieb Leonidas Spyropoulos: >> Hello all, >> >> Firstly can a TU or developer few it to the dev mailing list, as I don't >> have access. >> >> Archlinux is supporting btrfs for root filesystem some time now. Have any >

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-25 Thread Tom Gundersen
On Thu, Oct 25, 2012 at 3:50 PM, Leonidas Spyropoulos wrote: > Archlinux is supporting btrfs for root filesystem some time now. Have any > work or thoughts been done for supporting snapshots before update packages? > This way you can keep record of what's happening to your system and easily > roll

Re: [arch-general] Btrfs snapshots for upgrade operations

2012-10-25 Thread Thomas Bächler
Am 25.10.2012 15:50, schrieb Leonidas Spyropoulos: > Hello all, > > Firstly can a TU or developer few it to the dev mailing list, as I don't > have access. > > Archlinux is supporting btrfs for root filesystem some time now. Have any > work or thoughts been done for supporting snapshots before up