Re: systemd.setenv and a mount.unit

2014-12-10 Thread David Sterba
On Thu, Nov 20, 2014 at 11:39:19AM -0700, Chris Murphy wrote: On Thu, Nov 20, 2014 at 4:14 AM, Goffredo Baroncelli kreij...@inwind.it wrote: Supposing to have the following four subvolumes /root/ /root/etc /root/usr /root/var When you need to snapshot, you should: # btrfs

systemd.setenv and a mount.unit

2014-11-20 Thread Jakob Schürz
Hi there! Another challenge... I'm using btrfs. So i make snapshots from my system. And in a script, I make a symlink (for example: @system.CURRENT and @system.LAST) for the current and the last snapshot. So i want to add 2 entries in grub2 from which i can boot into the current and the

Re: systemd.setenv and a mount.unit

2014-11-20 Thread Goffredo Baroncelli
On 2014-11-19 23:48, Jakob Schürz wrote: Hi there! Another challenge... I'm using btrfs. So i make snapshots from my system. And in a script, I make a symlink (for example: @system.CURRENT and @system.LAST) for the current and the last snapshot. Interesting, I was unaware that I could

Re: systemd.setenv and a mount.unit

2014-11-20 Thread Jakob Schürz
Am 2014-11-20 um 11:17 schrieb Goffredo Baroncelli: On 2014-11-19 23:48, Jakob Schürz wrote: Hi there! Another challenge... I'm using btrfs. So i make snapshots from my system. And in a script, I make a symlink (for example: @system.CURRENT and @system.LAST) for the current and the last

Re: systemd.setenv and a mount.unit

2014-11-20 Thread Goffredo Baroncelli
On 2014-11-20 11:35, Jakob Schürz wrote: Am 2014-11-20 um 11:17 schrieb Goffredo Baroncelli: [] rootflags=subvol=debian so, the subvol=debian option is passed to mount. When grub-mkconfig generates the grub menu entries, does so. This I also have in my grub-config, and it works. But

Re: systemd.setenv and a mount.unit

2014-11-20 Thread Chris Murphy
On Thu, Nov 20, 2014 at 4:14 AM, Goffredo Baroncelli kreij...@inwind.it wrote: Supposing to have the following four subvolumes /root/ /root/etc /root/usr /root/var When you need to snapshot, you should: # btrfs subvolume snapshot /root /backup-root-20141120 # btrfs subvolume snapshot