public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] preserving zpool mountpoint on boot?
@ 2015-09-13 19:20 Nuno Magalhães
  2015-09-14  5:30 ` Volker Armin Hemmann
  0 siblings, 1 reply; 4+ messages in thread
From: Nuno Magalhães @ 2015-09-13 19:20 UTC (permalink / raw
  To: gentoo-user

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-14 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-13 19:20 [gentoo-user] preserving zpool mountpoint on boot? Nuno Magalhães
2015-09-14  5:30 ` Volker Armin Hemmann
2015-09-14 15:38   ` Nuno Magalhães
2015-09-14 20:27     ` Volker Armin Hemmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox