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 via email to