Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Brendan Hide <brendan@swiftspirit.co.za>
To: "Jakob Schürz" <wertstoffe@nurfuerspam.de>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: systemd.setenv and a mount.unit
Date: Thu, 20 Nov 2014 14:04:40 +0200	[thread overview]
Message-ID: <546DD8D8.2070004@swiftspirit.co.za> (raw)
In-Reply-To: <gbjvjb-oqp.ln1@venus.xundeenergie.ssh22.net>

On 2014/11/20 00: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.
>
> So i want to add 2 entries in grub2 from which i can boot into the 
> current and the last snapshot.
>
> I tried to pass an environmental variable with 
> systemd.setenv=BOOTSNAP=@system.CURRENT, and i have a mount-unit 
> containing the option
>
> Options=defaults,nofail,subvol=archive-local/@system.$BOOTSNAP
Perhaps I'm reading it incorrectly. I interpret this as:
Options=defaults,nofail,subvol=archive-local/@system.@system.CURRENT

-- 
__________
Brendan Hide
http://swiftspirit.co.za/
http://www.webafrica.co.za/?AFF1E97


      parent reply	other threads:[~2014-11-20 12:04 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
2014-11-20 18:39       ` Chris Murphy
2014-12-10 14:36         ` David Sterba
2014-11-20 12:04 ` Brendan Hide [this message]

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=546DD8D8.2070004@swiftspirit.co.za \
    --to=brendan@swiftspirit.co.za \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox