All of lore.kernel.org
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@inwind.it>
To: "Jakob Schürz" <wertstoffe@nurfuerspam.de>, linux-btrfs@vger.kernel.org
Subject: Re: systemd.setenv and a mount.unit
Date: Thu, 20 Nov 2014 12:14:40 +0100	[thread overview]
Message-ID: <546DCD20.6030602@inwind.it> (raw)
In-Reply-To: <546DC3EC.1020903@nurfuerspam.de>

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 it doesn't
> solve the challenge. Mounting more subvolumes according to the
> root-subvolume... :-)
> 

Ah! You never told that this is your request.

I can only suggest that after snapshooting the "/",
you snapshot their subvolumes, placing these under
the root snapshoot itself:

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 /root/etc /backup-root-20141120/etc
# btrfs subvolume snapshot /root/usr /backup-root-20141120/usr
# btrfs subvolume snapshot /root/var /backup-root-20141120/var

So in order to remount an "old" filesystem, you need to make only
1 mount.










> regards Jakob
> 
> -- To unsubscribe from this list: send the line "unsubscribe
> linux-btrfs" in the body of a message to majordomo@vger.kernel.org 
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

  reply	other threads:[~2014-11-20 11:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19 22:48 systemd.setenv and a mount.unit Jakob Schürz
2014-11-20 10:17 ` Goffredo Baroncelli
2014-11-20 10:35   ` Jakob Schürz
2014-11-20 11:14     ` Goffredo Baroncelli [this message]
2014-11-20 18:39       ` Chris Murphy
2014-12-10 14:36         ` David Sterba
2014-11-20 12:04 ` Brendan Hide

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=546DCD20.6030602@inwind.it \
    --to=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wertstoffe@nurfuerspam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.