Gentoo Archives: gentoo-user

From: "Nuno Magalhães" <nunomagalhaes@××××××.pt>
To: gentoo-user@l.g.o
Subject: [gentoo-user] preserving zpool mountpoint on boot?
Date: Sun, 13 Sep 2015 19:20:43
Message-Id: CADqA9uYQzALXgQokCinL=MdjFU9NFcdLBe5DS5A9-Me=NYVrsg@mail.gmail.com
1 Greetings,
2
3 If i export/import a zpool, the altroot property is not preserved so
4 it always gets mounted at /.
5
6 In /etc/init.d/zfs, the import line reads
7 $ZPOOL import -c $ZPOOL_CACHE -aN 2>/dev/null || true
8 so no -options there.
9
10 I've also tried with
11 zpool import -o altroot=/mnt -o cachefile=/etc/zfs/zpool.cache poolname
12 which works, but the cache file only lives until export, so i assume
13 it's not some kind of configuration save point. A simple import
14 afterwards will place the pool at / again. Same for -R.
15
16 Is there some option i can put in /etc/modprobe.d/zfs.conf (which
17 currently doesn't exist)?
18
19 Thanks,
20 Nuno

Replies

Subject Author
Re: [gentoo-user] preserving zpool mountpoint on boot? Volker Armin Hemmann <volkerarmin@××××××××××.com>