public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Nuno Magalhães" <nunomagalhaes@eu.ipp.pt>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] preserving zpool mountpoint on boot?
Date: Sun, 13 Sep 2015 20:20:10 +0100	[thread overview]
Message-ID: <CADqA9uYQzALXgQokCinL=MdjFU9NFcdLBe5DS5A9-Me=NYVrsg@mail.gmail.com> (raw)

Greetings,

If i export/import a zpool, the altroot property is not preserved so
it always gets mounted at /.

In /etc/init.d/zfs, the import line reads
$ZPOOL import -c $ZPOOL_CACHE -aN 2>/dev/null || true
so no -options there.

I've also tried with
zpool import -o altroot=/mnt -o cachefile=/etc/zfs/zpool.cache poolname
which works, but the cache file only lives until export, so i assume
it's not some kind of configuration save point. A simple import
afterwards will place the pool at / again. Same for -R.

Is there some option i can put in /etc/modprobe.d/zfs.conf (which
currently doesn't exist)?

Thanks,
Nuno


             reply	other threads:[~2015-09-13 19:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-13 19:20 Nuno Magalhães [this message]
2015-09-14  5:30 ` [gentoo-user] preserving zpool mountpoint on boot? Volker Armin Hemmann
2015-09-14 15:38   ` Nuno Magalhães
2015-09-14 20:27     ` Volker Armin Hemmann

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='CADqA9uYQzALXgQokCinL=MdjFU9NFcdLBe5DS5A9-Me=NYVrsg@mail.gmail.com' \
    --to=nunomagalhaes@eu.ipp.pt \
    --cc=gentoo-user@lists.gentoo.org \
    /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